[code-reflection] RFR: Add isQuotable attribute to LambdaOp [v2]
Rémi Forax
forax at openjdk.org
Wed Sep 3 21:54:54 UTC 2025
On Wed, 3 Sep 2025 21:40:42 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
>> Paul, there is no real difference at runtime betwen case Boolean and case boolean when you switch on an Object, case boolean just bloat the bytecode a little more.
>
> I was thinking more subjectively, more clearly indicating the pattern variable cannot be null (i realize the `case null, default` is also present).
Conceptually, a case Foo is like an instanceof Foo, it does not match null.
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/545#discussion_r2320309869
More information about the babylon-dev
mailing list