Re: JDK 8 - Lambda - Reflection issues

2014-03-14 Thread Simone Bordet
Hi, > On 03/13/2014 09:56 AM, Pavel Bucek wrote: >> I'm working on JSR 356 - Java API for WebSocket implementation and there >> is an interface: >> >> interface MessageHandler.Whole extends MessageHandler { >> void onMessage(T message); >> } >> >> And then there is a Session object, which has

Re: JDK 8 - Lambda - Reflection issues

2014-03-14 Thread Remi Forax
On 03/14/2014 05:43 PM, Pavel Bucek wrote: I'm considering filing this as a backward compatibility issue against JDK 8 - my reasoning would be that I should be able to still get the same information from the reflection API as I did in previous versions of JDK and I don't have a way how to restr

Re: JDK 8 - Lambda - Reflection issues

2014-03-14 Thread Remi Forax
On 03/13/2014 11:09 AM, Paul Sandoz wrote: On Mar 12, 2014, at 7:42 PM, Remi Forax wrote: As you have seen a lambda is not an anonymous class :) A non-serializable lambda is more lightweight than an anonymous class so the generic information that are transmitted from the bytecode to the runti

Re: JDK 8 - Lambda - Reflection issues

2014-03-14 Thread Remi Forax
On 03/13/2014 09:56 AM, Pavel Bucek wrote: Hi Remi, thanks! I suspected that it would not be possible, but it is always better to have the confirmation. My context is slightly different, but the consequences are similar like with the jackson library. Seems a little unfortunate to have the p

Re: JDK 8 - Lambda - Reflection issues

2014-03-14 Thread Pavel Bucek
I'm considering filing this as a backward compatibility issue against JDK 8 - my reasoning would be that I should be able to still get the same information from the reflection API as I did in previous versions of JDK and I don't have a way how to restrict lambda usage in the already designed an