jdk/src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java
changeset 23918 5f40f1d88890
parent 23039 6ee70bc18809
child 24572 5c9e5961d21c
equal deleted inserted replaced
23917:d247e52b5262 23918:5f40f1d88890
   270 
   270 
   271     /**
   271     /**
   272      * Set up class file generation.
   272      * Set up class file generation.
   273      */
   273      */
   274     private void classFilePrologue() {
   274     private void classFilePrologue() {
       
   275         final int NOT_ACC_PUBLIC = 0;  // not ACC_PUBLIC
   275         cw = new ClassWriter(ClassWriter.COMPUTE_MAXS + ClassWriter.COMPUTE_FRAMES);
   276         cw = new ClassWriter(ClassWriter.COMPUTE_MAXS + ClassWriter.COMPUTE_FRAMES);
   276         cw.visit(Opcodes.V1_8, Opcodes.ACC_PUBLIC + Opcodes.ACC_FINAL + Opcodes.ACC_SUPER, className, null, superName, null);
   277         cw.visit(Opcodes.V1_8, NOT_ACC_PUBLIC + Opcodes.ACC_FINAL + Opcodes.ACC_SUPER, className, null, superName, null);
   277         cw.visitSource(sourceFile, null);
   278         cw.visitSource(sourceFile, null);
   278 
   279 
   279         String invokerDesc = invokerType.toMethodDescriptorString();
   280         String invokerDesc = invokerType.toMethodDescriptorString();
   280         mv = cw.visitMethod(Opcodes.ACC_STATIC, invokerName, invokerDesc, null, null);
   281         mv = cw.visitMethod(Opcodes.ACC_STATIC, invokerName, invokerDesc, null, null);
   281     }
   282     }