Are classes generated by LambdaMetafactory special?
raffaello.giulietti at gmail.com
Mon Aug 5 21:02:48 UTC 2019
experiment suggests that classes generated by
java.lang.invoke.LambdaMetafactory are somewhat special:
(1) getName() on the class returns a string of the form
where Xxx is a fully qualified class name (with periods '.' as package
separators), nn is a decimal integer and hhh is a hex integer. What's
the role of the slash '/' in the name?
(2) An invocation of Class.forName() with that name fails.
(3) Invoking java.lang.instrument.Instrumentation.isModifiableClass()
with that class as an argument returns false.
Is this intentional or is it a bug?
More information about the core-libs-dev