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

Paul Sandoz psandoz at openjdk.org
Wed Sep 10 17:25:00 UTC 2025


On Tue, 9 Sep 2025 01:47:10 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:

>> 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 suggestion

In a follow on PR we could adjust the lifter to throw a friendlier error for flags related to serialization and bridges.

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

Marked as reviewed by psandoz (Lead).

PR Review: https://git.openjdk.org/babylon/pull/545#pullrequestreview-3207120805


More information about the babylon-dev mailing list