JEP proposed to target JDK 17: 406: Pattern Matching for switch (Preview)

Mike Rettig mike.rettig at gmail.com
Thu May 20 22:48:18 UTC 2021


Will non-expression switches be exhaustive? I know that this has been
discussed but I wanted to confirm the behavior for jdk 17.

https://mail.openjdk.java.net/pipermail/amber-spec-experts/2021-April/002959.html

Sealed classes will be far more useful with exhaustiveness.

Thanks,

Mike


More information about the jdk-dev mailing list