[code-reflection] RFR: BytecodeGenerator support of lambdas

Adam Sotona asotona at openjdk.org
Fri Apr 12 07:10:08 UTC 2024


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

>> BytecodeGenerator support of lambdas
>
> src/java.base/share/classes/java/lang/reflect/code/op/CoreOps.java line 1860:
> 
>> 1858:                     v -> switch (v) {
>> 1859:                         case String s -> s;
>> 1860:                         case null -> null;
> 
> What motivated this change?

NPE when the attribute is missing. This passes the null name and works OK.

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

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


More information about the babylon-dev mailing list