eclipse-jdt / eclipse.jdt.core

Eclipse Public License 2.0
156 stars 123 forks source link

Primitives in Patterns Unboxing part if expression is a reference type #2752

Open mpalat opened 1 month ago

mpalat commented 1 month ago

Draft State - WIP

refer issue #2298

What it does

Addresses the following part at this stage:

In https://cr.openjdk.org/~abimpoudis/instanceof/jep455-20240424/specs/instanceof-jls.html#jls-5.7.1 Section 5.7 If the expression is of a reference type, then a testing context allows the use of one of the following:

.. an unboxing conversion (5.1.8)

How to test

Author checklist