Lambda class names no longer reported when listening for JVMTI_EVENT_CLASS_FILE_LOAD events
brian.goetz at oracle.com
Thu Jan 23 15:28:32 PST 2014
Completely different kind of "anonymous class." This is a class whose name is not entered into the system dictionary. Gets us exactly 0% of the way there to the feature you're asking for.
On Jan 23, 2014, at 5:22 PM, Mark Derricutt wrote:
> Woah - so the JVM/java now has anonymous classes? Could this be exploited for a form of type-safe "multiple return values/tuples" similar to what C# offers? Similar to whats shown in http://stackoverflow.com/a/11795087 ?
> If that was exposed with similar syntax in JDK9 that would be awesome. Would play nice with Streams, lambdas and more....
> On 23 Jan 2014, at 12:48, Brian Goetz wrote:
>> Yes. We moved to "anonymous classes" (in the sense of Unsafe.defineAnonymousClass, not anonymous inner classes), for reasons of both security and performance. This is an unfortunate side effect.
More information about the lambda-dev