experiences with prototype

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Sun Feb 8 22:10:09 UTC 2015


On 08/02/15 11:50, Peter Levart wrote:
> Are lambdas/method references also not compatible with specialization 
> currently?
Hi Peter,
yes, lambdas are like inner classes - they are dealt with by javac after 
erasure takes place, meaning that most of the code generated by javac 
won't have any generic type info associated with it. It is of course 
annoying, but fixable (though not in the short term).

Thanks for your persistence with the prototype - I believe you have 
encountered all the major flaws related to javac's synthetic code not 
supported by specialization:

* non-static inner classes
* enhanced for loops
* private members accessors
* lambdas/method references

This info could also be useful for other people trying out the prototype.

Maurizio


More information about the valhalla-dev mailing list