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

Eliminate java.lang.invoke.InnerClassLambdaMetafactory dependency on java.util.logging

    XMLWordPrintable

Details

    Description

      java.util.logging is currently proposed in a separate module. The classes in the base module should use sun.util.logging.PlatformLogger to eliminate such dependency.



      @@ -190,11 +189,11 @@
               if (System.getProperty("debug.dump.generated") != null) {
                   System.out.printf("Loaded: %s (%d bytes) %n", lambdaClassName, classBytes.length);
                   try (FileOutputStream fos = new FileOutputStream(lambdaClassName.replace('/', '.') + ".class")) {
                       fos.write(classBytes);
                   } catch (IOException ex) {
      - Logger.getLogger(InnerClassLambdaMetafactory.class.getName()).log(Level.SEVERE, null, ex);
      + PlatformLogger.getLogger(InnerClassLambdaMetafactory.class.getName()).severe(ex.getMessage(), ex);
                   }
               }

      Attachments

        Activity

          People

            mchung Mandy Chung
            mchung Mandy Chung
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: