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

java.util.logging might force the initialization of ResourceBundle class too early.

XMLWordPrintable

      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.

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: