Re: Be able to invoke a MethodHandle directly

2008-10-30 Thread John Rose
On Oct 27, 2008, at 5:38 PM, Rémi Forax wrote: >> In general, you use MHs.insertArgument to build bound method handles >> to perform language-specific adaptation and dispatch. The attached >> code (using the bound-in data to fill in free variables) needs to >> perform the language-specific tests

Re: MethodType cache and class unloading

2008-10-30 Thread Rémi Forax
John Rose a écrit : > On Oct 29, 2008, at 1:07 PM, Rémi Forax wrote: > >> MethodHandle findVirtual(Object target, String name, MethodType >> type) >> This trick should avoid to create a MethodType with temporary type. >> > > That's very good. I like it partly because it guides implem