sun.management.Flag should loadLibrary()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8u40
    • Affects Version/s: 8u40
    • Component/s: 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().

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

                Created:
                Updated:
                Resolved: