[code-reflection] RFR: BytecodeGenerator support of lambdas [v4]

Adam Sotona asotona at openjdk.org
Mon Apr 15 06:44:52 UTC 2024


On Fri, 12 Apr 2024 17:31:43 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Yes, unfortunately hidden classes have some frustrating restrictions.
>
> What's the problem here? I recall LambdaMetafactory is designed with hidden class support in mind, that it generates compatible class names if possible.
> 
> Since hidden classes allow duplicate names (as it is defined with random suffix), does this break existing usages?

Unfortunately this is a different case. We generate a hidden class with lambda implementation method inside and `LambdaMetafactory` could not (and according to the spec should not) find the class.

-------------

PR Review Comment: https://git.openjdk.org/babylon/pull/48#discussion_r1565248766


More information about the babylon-dev mailing list