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

sun.management.Flag should loadLibrary()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 8u40
    • Component/s: core-svc
    • Labels:
    • Resolved In Build:
      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

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

                  Dates

                  Due:
                  Created:
                  Updated:
                  Resolved: