[patterns] Draft Spec for JEP 375 Pattern Matching for instanceof (Preview 2)

Tagir Valeev amaembo at gmail.com
Tue Mar 17 04:33:09 UTC 2020


Just a reminder that parenthesized expression is still not covered by the
spec draft. I expect to see it in chapter 6.3.1. Without this, even some
samples listed in the spec draft itself are incorrect. E.g. the sample in
6.3.2: if (!(o instanceof String s)) {...

With best regards,
Tagir Valeev

On Mon, Mar 16, 2020 at 10:04 PM Gavin Bierman <gavin.bierman at oracle.com>

> Dear experts:
> A draft language spec for JEP 375 (Pattern Matching for instanceof) is
> available at:
> http://cr.openjdk.java.net/~gbierman/jep375/latest
> Main change from Preview 1 is, as discussed on this list, support for
> deconstruction patterns over record types.
> Comments welcome!
> Thanks,
> Gavin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20200317/3eb7f1d4/attachment.htm>

More information about the amber-spec-experts mailing list