[code-reflection] RFR: Lazily invoke lambda op building method [v3]
Mourad Abbay
mabbay at openjdk.org
Fri Dec 19 22:32:08 UTC 2025
> Validation introduced in #738 is causing reflectable lambda creation to fail with an `InternalError`. The reason for this is that we are invoking lambda op building method in the lambda class static initializer, when lambda op building method throws UOE, it causes lambda creation to fail with `InternalError`. What we want is `Op.ofQuotable` to fail but not lambda instantiation. To adress this, we now lazily invoke lambda op building method and as result we lazily compute the `Quoted` instance, while sharing the lambda model across instances of the same lambda class.
Mourad Abbay has updated the pull request incrementally with one additional commit since the last revision:
Apply suggestions
-------------
Changes:
- all: https://git.openjdk.org/babylon/pull/769/files
- new: https://git.openjdk.org/babylon/pull/769/files/c092b388..8d829495
Webrevs:
- full: https://webrevs.openjdk.org/?repo=babylon&pr=769&range=02
- incr: https://webrevs.openjdk.org/?repo=babylon&pr=769&range=01-02
Stats: 183 lines in 4 files changed: 79 ins; 102 del; 2 mod
Patch: https://git.openjdk.org/babylon/pull/769.diff
Fetch: git fetch https://git.openjdk.org/babylon.git pull/769/head:pull/769
PR: https://git.openjdk.org/babylon/pull/769
More information about the babylon-dev
mailing list