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

Adam Sotona asotona at openjdk.org
Mon Apr 15 09:05:27 UTC 2024


On Fri, 12 Apr 2024 20:58:42 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

>> Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   commented out debug print
>
> test/jdk/java/lang/reflect/code/bytecode/TestBytecode.java line 295:
> 
>> 293: 
>> 294:     static int consumeQuotable(int i, QuotableFunc f) {
>> 295:         return f.apply(i + 1);
> 
> For now perhaps assert that the result of `f.quoted()` and `f.quoted().op()` are non-null and the latter is an instance of `LambdaOp`. A separate test is needed to assert on the code model and captured parameters, we could add that in another PR.

I've added null and instanceof checks.

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

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


More information about the babylon-dev mailing list