MethodHandle.invoke* should only work with source 1.7

Rémi Forax forax at univ-mlv.fr
Thu Feb 10 02:20:05 PST 2011


I've noticed that javac allows to use MethodHandle.invokeExact() or
MethodHandle.invokeGeneric if the source version is 1.6

It's not a good idea because you can't use a real 1.6 javac to compile 
these methods.

Rémi





More information about the mlvm-dev mailing list