Comment

Comment by the8472

I wonder how efficient the generated classes are.

If they're just as good as a final class with directly implemented methods then this might be useful to implement FieldHandles (similiar to MethodHandles[1]) with practically zero overhead, since the JVM can optimize away a lot of runtime checks and devirtualize method calls on leaf classes.

[1] http://docs.oracle.com/javase/8/docs/api/java/lang/invoke/Me...

parent the8472 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton