[code-reflection] RFR: Add isQuotable attribute to LambdaOp [v2]

Mourad Abbay mabbay at openjdk.org
Wed Sep 3 20:37:06 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.

Mourad Abbay has updated the pull request incrementally with one additional commit since the last revision:

  Apply review comments

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

Changes:
  - all: https://git.openjdk.org/babylon/pull/545/files
  - new: https://git.openjdk.org/babylon/pull/545/files/12eeef41..29a62de1

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=545&range=01
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=545&range=00-01

  Stats: 16 lines in 1 file changed: 9 ins; 3 del; 4 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