tterFunction = (Function) site.getTarget().invokeExact();
Object instance = loadedClass.newInstance();
// Throws java.lang.ClassNotFoundException: junit.framework.TestResult
Object returnValue = getterFunction.apply(instance);
System.out.println("LambdaMetafactory invoke ret
HOD_RETURN_TYPE)),
MethodType.methodType(METHOD_RETURN_TYPE,
loadedClass));
Function getterFunction = (Function)
site.getTarget().invokeExact();
Thank you, Claes.
With kind regards,
Geoffrey De Smet
On 12/02/18 11:37, Claes Redes
public String getName() {
return name;
}
}
}
With kind regards,
Geoffrey De Smet
___
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
static final MethodHandle handle8;
private static final MethodHandle handle9;
...
private static final MethodHandle handle1000;
}
And furthermore, it would break down with domain hierarchies
that have more than 1000 getters/setters.
With kind regards,
Geoffrey De Smet
On 19/02/18 13:
MegamorphicFasterReflectionClientBenchmark._400_LambdaMetafactory
avgt 60 14.393 ± 0.275 ns/op
With kind regards,
Geoffrey De Smet
On 19/02/18 23:54, Wenlei Xie wrote:
Thank you Vladimir for the explanation