Re:IntelliJ IDEA and the whole IntelliJ platform migrates to...
by pjmlp on Sunday January 03, 2016 @12:36PM
(#10831368)
> lambdas are just syntactic sugar at client side
No they are not, as they make use of invokedynamic. Certified JVMs must make use of the opcode and not generate anonymous nested classes, as many think they translate to.
Re:IntelliJ IDEA and the whole IntelliJ platform migrates to...
by _death_dude_ on Sunday January 03, 2016 @02:22PM
(#10831875)
No, invokedynamic is not mandatory for lambda.
It's a proposed translation, which has the advantage to make lambdas that do not capture values to be seen as constant by the VM.
But you're right that certified Java 7 VM must have an invokedynamic opcode.
Because of that, Java 8 is supposed to be a smaller shift than Java 5.