equal
deleted
inserted
replaced
138 } |
138 } |
139 } |
139 } |
140 |
140 |
141 |
141 |
142 /** instance counters for dumped classes */ |
142 /** instance counters for dumped classes */ |
143 private final static HashMap<String,Integer> DUMP_CLASS_FILES_COUNTERS; |
143 private static final HashMap<String,Integer> DUMP_CLASS_FILES_COUNTERS; |
144 /** debugging flag for saving generated class files */ |
144 /** debugging flag for saving generated class files */ |
145 private final static File DUMP_CLASS_FILES_DIR; |
145 private static final File DUMP_CLASS_FILES_DIR; |
146 |
146 |
147 static { |
147 static { |
148 if (DUMP_CLASS_FILES) { |
148 if (DUMP_CLASS_FILES) { |
149 DUMP_CLASS_FILES_COUNTERS = new HashMap<>(); |
149 DUMP_CLASS_FILES_COUNTERS = new HashMap<>(); |
150 try { |
150 try { |
769 // invocation |
769 // invocation |
770 MethodType type = name.function.methodType(); |
770 MethodType type = name.function.methodType(); |
771 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, MH, "invokeBasic", type.basicType().toMethodDescriptorString(), false); |
771 mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, MH, "invokeBasic", type.basicType().toMethodDescriptorString(), false); |
772 } |
772 } |
773 |
773 |
774 static private Class<?>[] STATICALLY_INVOCABLE_PACKAGES = { |
774 private static Class<?>[] STATICALLY_INVOCABLE_PACKAGES = { |
775 // Sample classes from each package we are willing to bind to statically: |
775 // Sample classes from each package we are willing to bind to statically: |
776 java.lang.Object.class, |
776 java.lang.Object.class, |
777 java.util.Arrays.class, |
777 java.util.Arrays.class, |
778 sun.misc.Unsafe.class |
778 sun.misc.Unsafe.class |
779 //MethodHandle.class already covered |
779 //MethodHandle.class already covered |