• Sources: primary, discussion
  • Summary: Angelos Bimpoudis and Gavin Bierman announced on 2026-11-09 that development of Primitive Types in Patterns, instanceof, and switch has stopped and the draft sixth preview JEP is withdrawn. The feature previewed in JDK 23 through 27 and will be unavailable in JDK 28 because its exact numeric conversion rules may conflict with Valhalla's planned user-defined numeric types. A draft JEP for Constant Patterns, allowing nested constants such as case Point(0, 0) and carrying forward expanded primitive support in switch, is due shortly.
  • Why it matters: Code that uses primitive patterns under --enable-preview will stop compiling on JDK 28 and needs rewriting before upgrading.
  • Background: Java preview features ship complete but unfinalized, and code must opt in with --enable-preview at compile and run time, so they can change or disappear between releases. JEP 12 defines this process and explicitly allows removing a preview through a bug-tracker issue rather than a new JEP. Project Valhalla is the long-running effort to add value classes and richer numeric types to the JVM, and its design now constrains how pattern matching treats numeric conversions.