First draft of translation document
Brian Goetz
brian.goetz at oracle.com
Tue May 18 07:01:16 PDT 2010
> "Additionally, we assume that the MethodHandle class will be extended
> to provide a method asSam(Class sam) which will provide an optimized
> form of injecting a SAM interface into a method handle."
>
> At the end of the day, doesn't that mean that an anonymous proxy class
> will be created anyway?
Nope! A bit of VM magic called "interface injection" allows this to be done
without generating stub classes.
Generating stub classes in the front-end compiler bloats up the application
static footprint and increases program startup time. The VM magic bypasses
these costs.
More information about the lambda-dev
mailing list