4 ms·
The feature has been in Java for a long time. This is just nice syntax for anonymous inner classes.
by qznc 14y ago
The feature has been in Java for a long time. This is just nice syntax for anonymous inner classes.
- spullara 14y agoThough the current implementation does use anonymous inner classes under the covers the intent was to specify them such that other implementations that are more efficient could be used. The likely final implementation will be simple methods invoked with invokedynamic that don't need a separate class and instance per call site.
- Peaker 14y agoThe feature has not been in Java for a long time, because the feature is the nice syntax.