Java 23 begins to take shape
Although not expected to arrive until September, Java Development Kit 23 already has been assigned its first feature, an enhancement to pattern matching.
JDK 23 would follow JDK 22 by six months. JDK 22 is due in March with capabilities such as previews of structured concurrency and string templates.
The OpenJDK page for JDK 23 lists a preview of primitive types in patterns, instanceof, and switch as the first feature targeted for the release. This JDK enhancement proposal would enhance pattern matching by allowing primitive type patterns in all pattern contexts.
