JSR 393 (Java SE 18): JEP Proposed to Target: 420: Pattern Matching for switch (Second Preview)
Iris Clark
iris.clark at oracle.com
Tue Nov 16 02:59:39 UTC 2021
The following JEP with scope "SE" has been 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.
The announced deadline for feedback to jdk-dev is Tue 23 Nov 23:59 UTC:
https://mail.openjdk.java.net/pipermail/jdk-dev/2021-November/006252.html
If there are no unresolved objections at that time, then the JEP will be moved
to the Targeted state, indicating that the feature is expected to appear in
the specified release of the JDK Project. For more information about states,
see the JEP Process document:
https://openjdk.java.net/jeps/1
A dashboard that lists JEPs with "SE" scope may be found via a link on this
page:
https://openjdk.java.net/projects/jdk/18/spec/
Thanks,
Iris
More information about the java-se-spec-observers
mailing list