JDK-8269380 : Release Note: JEP 406: Pattern Matching for switch (Preview)
  • Type: Sub-task
  • Component: specification
  • Sub-Component: language
  • Affected Version: 17
  • Priority: P2
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2021-06-25
  • Updated: 2022-03-30
  • Resolved: 2021-12-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17Resolved
Description
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.

For further details, see [JEP 406](https://openjdk.java.net/jeps/406).