[code-reflection] RFR: Add isQuotable attribute to LambdaOp
Mourad Abbay
mabbay at openjdk.org
Wed Sep 3 20:06:09 UTC 2025
In the `interpreter` and `ByteCodeGenerator` we detect if a lambda is quotable based on its functional interface. This approach will not work if intersection type is used e.g. `Runnable r = (Runnable & Quotable) () -> {};` This PR adds a flag to LambdaOp that will be set by the `javac` for quotable lambdas.
-------------
Commit messages:
- Add attribute to LambdaOp
Changes: https://git.openjdk.org/babylon/pull/545/files
Webrev: https://webrevs.openjdk.org/?repo=babylon&pr=545&range=00
Stats: 49 lines in 5 files changed: 40 ins; 0 del; 9 mod
Patch: https://git.openjdk.org/babylon/pull/545.diff
Fetch: git fetch https://git.openjdk.org/babylon.git pull/545/head:pull/545
PR: https://git.openjdk.org/babylon/pull/545
More information about the babylon-dev
mailing list