On 05/15/2013 07:27 PM, Mark Roos wrote: > Just for my learning, what is the use model for this form of method > handle inspection? > > Is there some cool technique that this facilitates?
yes, if you crack a method handle, you get the reference to a method (the constructor etc.) so you can by example replace a method handle call by a direct Java call if you have access to/generate the bytecode of the callsite and you can also get access to the bytecode of the referenced method and do all the fancy transformation you want on it. Note that for the later, there is an issue because there is no way (without being java implementation specific) to know if the referenced bytecode will not be redefined. > > regards > mark cheers, Rémi _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev