JEP proposed to target JDK 18: 420: Pattern Matching for switch (Second Preview)

mark.reinhold at oracle.com mark.reinhold at oracle.com
Wed Nov 24 00:22:53 UTC 2021


2021/11/15 16:24:17 -0800, mark.reinhold at oracle.com:
> The following JEP is proposed to target JDK 18:
> 
>   420: Pattern Matching for switch (Second Preview)
>        https://openjdk.java.net/jeps/420
> 
>   Summary: Enhance the Java programming language with pattern matching
>   for switch expressions and statements, along with extensions to the
>   language of patterns.  Extending pattern matching to switch allows
>   an expression to be tested against a number of patterns, each with a
>   specific action, so that complex data-oriented queries can be expressed
>   concisely and safely.

Hearing no objections, I’ve targeted this JEP to JDK 18.

- Mark


More information about the jdk-dev mailing list