[code-reflection] RFR: Fix lambda bugs [v3]
Paul Sandoz
psandoz at openjdk.org
Mon Aug 25 21:26:58 UTC 2025
On Mon, 25 Aug 2025 11:28:24 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:
>> Fix lambda bugs:
>> 1. Unnecessary load of static fields accessed inside the lambda body (bug 1).
>> 2. The model of a lambda expression that returns void, contains additional boxing whose result is not used (bug 2).
>> 3. Inner lambda is incorrectly quoted (bug 3).
>
> Mourad Abbay has updated the pull request incrementally with two additional commits since the last revision:
>
> - Fix bug 2
> - Fix the bug of lambda model containing ReturnOp with value even though the lambda return type is void
Changes look good, but we should take care the change to `coerce` does not break anything. Are you going to add more tests covering the other fixes?
-------------
PR Review: https://git.openjdk.org/babylon/pull/532#pullrequestreview-3153078039
More information about the babylon-dev
mailing list