src/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java

Print this page

        

*** 28,39 **** import java.io.FileOutputStream; import java.io.IOException; import java.lang.reflect.Method; import java.security.ProtectionDomain; import java.util.concurrent.atomic.AtomicInteger; ! import java.util.logging.Level; ! import java.util.logging.Logger; import jdk.internal.org.objectweb.asm.*; import static jdk.internal.org.objectweb.asm.Opcodes.*; import sun.misc.Unsafe; /** --- 28,38 ---- import java.io.FileOutputStream; import java.io.IOException; import java.lang.reflect.Method; import java.security.ProtectionDomain; import java.util.concurrent.atomic.AtomicInteger; ! import sun.util.logging.PlatformLogger; import jdk.internal.org.objectweb.asm.*; import static jdk.internal.org.objectweb.asm.Opcodes.*; import sun.misc.Unsafe; /**
*** 190,200 **** 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); } } ClassLoader loader = targetClass.getClassLoader(); ProtectionDomain pd = (loader == null) ? null : targetClass.getProtectionDomain(); --- 189,199 ---- 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) { ! PlatformLogger.getLogger(InnerClassLambdaMetafactory.class.getName()).severe(ex.getMessage(), ex); } } ClassLoader loader = targetClass.getClassLoader(); ProtectionDomain pd = (loader == null) ? null : targetClass.getProtectionDomain();