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

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

    Details

      Description

      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.

        Activity

        Show
        dfuchs Daniel Fuchs added a comment - http://cr.openjdk.java.net/~dfuchs/webrev_8170984/webrev.00/
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/250e4a7eec3d
        User: dfuchs
        Date: 2016-12-09 15:50:52 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/250e4a7eec3d User: dfuchs Date: 2016-12-09 15:50:52 +0000
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/250e4a7eec3d
        User: lana
        Date: 2016-12-13 18:25:03 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/250e4a7eec3d User: lana Date: 2016-12-13 18:25:03 +0000

          People

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

            Dates

            • Created:
              Updated:
              Resolved: