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

Paul Sandoz psandoz at openjdk.org
Wed Sep 3 20:32:55 UTC 2025


On Wed, 3 Sep 2025 20:25:31 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:

>> src/jdk.incubator.code/share/classes/jdk/incubator/code/dialect/java/JavaOp.java line 191:
>> 
>>> 189:             boolean isQuotable = def.extractAttributeValue(ATTRIBUTE_LAMBDA_IS_QUOTABLE,
>>> 190:                     false, v -> switch (v) {
>>> 191:                         case Boolean b -> b;
>> 
>> Can we use the `boolean` primitive type?
>
> It's a preview feature

We should be able to use preview features as the `jdk.incubator.code` module is annotated with `@ParticipatesInPreview`, unless there is some odd restriction when javac calls code in the incubating module?

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

PR Review Comment: https://git.openjdk.org/babylon/pull/545#discussion_r2320109469


More information about the babylon-dev mailing list