JSR 395 (Java SE 20): JEP Proposed to Target: 433: Pattern Matching for switch (Fourth Preview)

Iris Clark iris.clark at oracle.com
Wed Nov 16 18:26:22 UTC 2022

The following JEP with scope "SE" has been proposed to target JDK 20:

  433: Pattern Matching for switch (Fourth Preview)

  Summary: Enhance the Java programming language with pattern matching
  for switch expressions and statements.  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.  This is a preview language feature.

The announced deadline for feedback to jdk-dev is Wed 23 Nov 23:59 UTC:


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:


A dashboard that lists JEPs with "SE" scope may be found via a link on this



More information about the java-se-spec-experts mailing list