Le 08/11/2010 07:43, John Rose a écrit : > On Nov 7, 2010, at 1:17 AM, assembling signals wrote: > >> For the use case "calling a method whose signature is unknown prior to >> runtime" >> (such as some lib, loaded externally) : > That's what MethodHandles.genericInvoker is for. > > You can also do this yourself by calling Lookup.findVirtual on > MethodHandle.invokeExact. That reflective mechanism will hand you a > capability to invoke any signature, even if you didn't spin bytecodes.
John, You mean, doing a Lookup.findVirtual on MethodHandle.invokeGeneric. Ivan, you can also consider MethodHandles.spreadArguments(). > -- John Rémi _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev