International
The Morning Dev

Only the news worth knowing

‹
 

Release

Withdrawing the Primitive Patterns Preview Feature

Inside Java ·

The Brief

  • Development of Primitive Types in Patterns, instanceof, and switch has ceased.
  • The draft JEP 8393282, which would have been the sixth preview of this feature, will be withdrawn.
  • The feature will be removed from JDK 28.

Why it matters

Developers who planned to use primitive type patterns in instanceof or switch in JDK 28 will not get this preview feature, so code relying on it will need a different approach.

Who’s affected

  • Java developers experimenting with primitive patterns in instanceof and switch
  • Teams planning features for JDK 28
  • JDK 28
  • #java
  • #jdk
  • #jep
  • #preview-features
  • #pattern-matching

We have decided to cease development of Primitive Types in Patterns, instanceof, and switch. The draft JEP https://openjdk.org/jeps/8393282 that would have been the sixth preview of this feature will be withdrawn, and the feature will be removed from JDK 28.

Timeline

  1. Development ceased; draft JEP 8393282 to be withdrawn and feature removed from JDK 28

  2. Inside Java

    Withdrawing the Primitive Patterns Preview Feature

How do you feel about this?

0 Comments

    Withdrawing the Primitive Patterns Preview Feature – The Morning Dev