Re: invoking a interface default method from within an InvocationHandler

2014-10-22 Thread Peter Levart
On 10/20/2014 11:25 AM, Cédric Champeau wrote: For what it's worth, in Groovy, we have two separate pathes to "implement classes at runtime", that is to say generating proxies. In the case of an interface, we rely on the JDK proxy just because it is *much* faster than generating a class through A

Re: invoking a interface default method from within an InvocationHandler

2014-10-22 Thread Cédric Champeau
On 22/10/2014 09:26, Peter Levart wrote: On 10/20/2014 11:25 AM, Cédric Champeau wrote: For what it's worth, in Groovy, we have two separate pathes to "implement classes at runtime", that is to say generating proxies. In the case of an interface, we rely on the JDK proxy just because it is *much

Re: invoking a interface default method from within an InvocationHandler

2014-10-22 Thread Remi Forax
On 10/17/2014 11:58 AM, Paul Sandoz wrote: On Oct 16, 2014, at 12:43 PM, Remi Forax wrote: On 10/15/2014 06:54 PM, Paul Sandoz wrote: Hi Remi, I did some brief evaluation of this area. MethodHandleProxies.asInterfaceInstance currently does not support proxying to default methods. An Inter

Re: invoking a interface default method from within an InvocationHandler

2014-10-22 Thread Remi Forax
On 10/20/2014 11:25 AM, Cédric Champeau wrote: For what it's worth, in Groovy, we have two separate pathes to "implement classes at runtime", that is to say generating proxies. In the case of an interface, we rely on the JDK proxy just because it is *much* faster than generating a class throug