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

sun.management.Flag should loadLibrary()

    XMLWordPrintable

Details

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

    Backports

      Description

        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().

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: