Re: invoke* on a MethodHandle

2009-02-05 Thread Rémi Forax
John Rose a écrit : > On Feb 2, 2009, at 6:35 AM, Rémi Forax wrote: > >> Currently, the mth patch allow to call directly a MethoHandle >> using invokevirtual but also invokeinterface, invokespecial or >> invokestatic. >> >> I wonder why invokeinterface, invokespecial and invokestatic are allowed >

Re: invoke* on a MethodHandle

2009-02-05 Thread John Rose
On Feb 5, 2009, at 1:12 AM, Rémi Forax wrote: > By the way, the current prototype rely on getMethod (not > getDeclaredMethod) to find callable methods, > so it's only possible to reify public methods. > Is it a known limitation of the current prototype or is the spec > will only allow find* on

Re: User defined method handle

2009-02-05 Thread Rémi Forax
John Rose a écrit : > On Feb 4, 2009, at 7:38 AM, Rémi Forax wrote: > > >> It seems it's currently impossible to create a user defined method >> handle >> because the constructor of MethodHandle take a token (Token) >> which is not accessible to user code. >> >> I remember it was a requirement

Re: invoke* on a MethodHandle

2009-02-05 Thread Rémi Forax
John Rose a écrit : > On Feb 5, 2009, at 1:12 AM, Rémi Forax wrote: > >> By the way, the current prototype rely on getMethod (not >> getDeclaredMethod) to find callable methods, >> so it's only possible to reify public methods. >> Is it a known limitation of the current prototype or is the spec wi