Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8350818

Improve OperatingSystemMXBean cpu load tests to not accept -1.0 by default

XMLWordPrintable

      The cpu load tests in OperatingSystemMXBean allow -1.0 which default "not implemented" behaviour.

      Test shouldn't allow -1.0 and have only specific exception to test better.

      Also, need to update test to use getCpuLoad()

            lmesnik Leonid Mesnik
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: