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

Mourad Abbay mabbay at openjdk.org
Thu Sep 4 20:00:16 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:

  Detect if a lambda is quotable when lifting bytecode

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

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

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

  Stats: 7 lines in 1 file changed: 5 ins; 2 del; 0 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