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

Mourad Abbay mabbay at openjdk.org
Mon Sep 8 21:52:44 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:

  Rectify the way we get the flags of a lambda invokedynamic

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

Changes:
  - all: https://git.openjdk.org/babylon/pull/545/files
  - new: https://git.openjdk.org/babylon/pull/545/files/3259b02a..5f5dfe00

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

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