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

{ClassLoading,Memory}MXBean::isVerbose methods are inconsistent with their setVerbose methods

    XMLWordPrintable

Backports

    Description

      The ClassLoadingMXBean and MemoryMXBean APIs have setVerbose methods to control verbose mode and isVerbose methods to query it.

      Some JCK tests expect setVerbose(false) to disable verbose mode and, subsequently, isVerbose() to return false.

      However, if logging to a file is enabled by using -Xlog on the java launcher command line then isVerbose() returns true even after calling setVerbose(false).

      Attachments

        Issue Links

          Activity

            People

              stefank Stefan Karlsson
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: