-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b149
-
Not verified
A recent fix change the code of java.util.logging to use SharedSecrets.getJavaUtilResourceBundleAccess() to load resource bundle.
However, calling SharedSecrets.getJavaUtilResourceBundleAccess() forces the initialization of the ResourceBundle class.
Because SharedSecrets.getJavaUtilResourceBundleAccess() is called during the static initialization of Level and Logger, it can happen too early.
A possible work around for this issue would be to delay this call until it's really needed.
However, calling SharedSecrets.getJavaUtilResourceBundleAccess() forces the initialization of the ResourceBundle class.
Because SharedSecrets.getJavaUtilResourceBundleAccess() is called during the static initialization of Level and Logger, it can happen too early.
A possible work around for this issue would be to delay this call until it's really needed.