JDK-8064288 : sun.management.Flag should loadLibrary()
  • Type: Bug
  • Component: core-svc
  • Affected Version: 8u40
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-11-07
  • Updated: 2015-06-04
  • Resolved: 2014-11-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8u40 b17Fixed 9Fixed
Related Reports
Duplicate :  
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().

noreg-other: this fix is implicitly tested by an existing test case