< prev index next >

src/java.base/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java

Print this page

        

*** 42,52 **** import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; - import java.util.Set; import java.util.stream.Stream; import static java.lang.invoke.LambdaForm.BasicType; import static java.lang.invoke.LambdaForm.BasicType.*; import static java.lang.invoke.LambdaForm.*; --- 42,51 ----
*** 313,323 **** /** * Extract the MemberName of a newly-defined method. */ private MemberName loadMethod(byte[] classFile) { ! Class<?> invokerClass = LOOKUP.makeHiddenClassDefiner(classFile, Set.of(ClassOption.WEAK)) .defineClass(true, classDataValues()); return resolveInvokerMember(invokerClass, invokerName, invokerType); } private static MemberName resolveInvokerMember(Class<?> invokerClass, String name, MethodType type) { --- 312,322 ---- /** * Extract the MemberName of a newly-defined method. */ private MemberName loadMethod(byte[] classFile) { ! Class<?> invokerClass = LOOKUP.makeHiddenClassDefiner(classFile) .defineClass(true, classDataValues()); return resolveInvokerMember(invokerClass, invokerName, invokerType); } private static MemberName resolveInvokerMember(Class<?> invokerClass, String name, MethodType type) {
< prev index next >