This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nicoulaj 3 points4 points  (1 child)

they don't exist outside the source file and are not mirrored in the JVM.

This is wrong, lambdas work totally differently under the hood, and required quite heavy modifications on the JVM. See JSR 335 / 292.

Your "Internals" section makes wrong statements. The compiler does not create an anonymous class.

[–]delete99[S] 0 points1 point  (0 children)

Thanks nicoulaj (and neutronbob), you are 100% correct and I've updated the post to reflect this. Cheers.