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

sun.management.Flag should loadLibrary()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8u40
    • 8u40
    • core-svc
    • b17

        sun.management.Flag contains a number of native methods, but does not call loadLibrary() itself, instead relying on other classes (notably sun.management.ManagementFactoryHelper) to load the "management" native library.

        Flag's static initializer calls the native "initialize()" method. In the case of a code path where the Flag class is encountered before the management native library is loaded, the result would be an UnsatisfiedLinkError.

        The Flag class should make its own call to loadLibrary().

              bchristi Brent Christian
              bchristi Brent Christian
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: