Finalizing in JDK 16 - Pattern matching for instanceof

forax at forax at
Sun Sep 13 17:49:17 UTC 2020

> De: "Brian Goetz" <brian.goetz at>
> À: "Remi Forax" <forax at>
> Cc: "Gavin Bierman" <gavin.bierman at>, "amber-spec-experts"
> <amber-spec-experts at>
> Envoyé: Dimanche 13 Septembre 2020 15:20:28
> Objet: Re: Finalizing in JDK 16 - Pattern matching for instanceof

>> I think that Pattern matching for `instanceof` should stay in the preview
>> feature state because as we discuss about how pattern matching works,
>> there is a strong feeling that both features should be aligned, so i see Pattern
>> matching for `instanceof` being promoted as a non-preview feature as an
>> unnecessary risk until the pattern matching feature is not ready.

> There’s a lot of negatives in this phrasing, so can you turn it around and,
> instead of saying what we should not, do, say what you think we should? The
> logical conclusion of what you are suggesting is that we should not ship _any_
> of pattern matching until _all_ of it is ready.

I think we should release features in sync, by example, instanceof T t and switch with the type patterns are the very similar so they should both have the same preview status. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amber-spec-experts mailing list