The number of proposed features for Java Development Kit (JDK) 23, the next planned version of standard Java, has climbed to an even dozen. The latest addition includes scoped values, which enable a method to share immutable data both within a thread and with child threads.
Due September 17, JDK 23 also will include a third preview of structured concurrency, a second preview of flexible constructor bodies, the deprecation of the memory access methods in sun.misc.UnSafe, an eighth incubation of a vector API, a second preview of stream gatherers, a second preview of a class-file API, and a preview of primitive types in patterns, instanceof, and switch. Other proposed features include module import declarations, Markdown documentation comments, making the generational mode of the Z Garbage collector the default mode, and a third preview of implicitly declared classes and instance methods.