[code-reflection] Integrated: Add isQuotable attribute to LambdaOp
Mourad Abbay
mabbay at openjdk.org
Mon Sep 15 12:44:41 UTC 2025
On Wed, 3 Sep 2025 20:00:54 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.
This pull request has now been integrated.
Changeset: d276cba1
Author: Mourad Abbay <mabbay at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/d276cba1b4f99b8959e9177b3951ea393ef7acf2
Stats: 100 lines in 8 files changed: 56 ins; 0 del; 44 mod
Add isQuotable attribute to LambdaOp
Reviewed-by: psandoz
-------------
PR: https://git.openjdk.org/babylon/pull/545
More information about the babylon-dev
mailing list