First draft of translation document
Gernot Neppert
mcnepp02 at googlemail.com
Tue May 18 01:27:53 PDT 2010
I see. So all invocations of 'asSam' for the same SAM-type will yield
instances of the same (anonymous) proxy class - quite cool ;-)
Thanks for the explanation!
2010/5/18 Rémi Forax <forax at univ-mlv.fr>:
> Le 18/05/2010 09:01, Gernot Neppert a écrit :
> No, not necessarily. That's why asSam() is cool.
>
> The idea behind is to optimize the class that have only
> one abstract method to store that method
> in a special place and to have a specific path
> in the VM to deal with these new kind of objects.
>
> In that case method handles and SAM objects
> can share the same representation in the VM
> (or a similar one) thus the VM will be able
> to create a new inner class from a method handle
> without creating a new class.
>
More information about the lambda-dev
mailing list