JSR 392 (Java SE 17): JEP Proposed to Target: 406: Pattern Matching for switch (Preview)
Iris Clark
iris.clark at oracle.com
Thu May 20 19:43:40 UTC 2021
The following JEP with scope "SE" has been proposed to target JDK 17:
406: Pattern Matching for switch (Preview)
https://openjdk.java.net/jeps/406
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 Wed 26 May 23:59 UTC:
https://mail.openjdk.java.net/pipermail/jdk-dev/2021-May/005579.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/17/spec/
Thanks,
Iris
More information about the java-se-spec-experts
mailing list