[code-reflection] RFR: BytecodeGenerator support of lambdas

Adam Sotona asotona at openjdk.org
Fri Apr 12 07:13:50 UTC 2024


On Thu, 11 Apr 2024 22:23:35 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

>> BytecodeGenerator support of lambdas
>
> src/java.base/share/classes/java/lang/reflect/code/bytecode/BytecodeGenerator.java line 107:
> 
>> 105:         MethodHandles.Lookup hcl;
>> 106:         try {
>> 107:             hcl = l.in(l.defineClass(classBytes));
> 
> That's frustrating! but thankfully its easy to work around it

Yes, unfortunately hidden classes have some frustrating restrictions.

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

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


More information about the babylon-dev mailing list