JDK 8 - Lambda - Reflection issues
Paul Sandoz
paul.sandoz at oracle.com
Thu Mar 13 10:09:52 UTC 2014
On Mar 12, 2014, at 7:42 PM, Remi Forax <forax at univ-mlv.fr> 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 runtime (the lambda metafactory) are not kept inside the lambda class (a lambda class may be shared by several different lambdas).
>
Seems like the reflection API is at the wrong level and a Java model/mirror API might be able to handle this correctly?
Paul.
More information about the jdk8-dev
mailing list