JDK 23 feature set is finalized as of June 6, 2024, with release scheduled for September 17th. Preview features include primitive patterns (first preview), flexible constructor bodies (second preview with field assignment support), simplified main method (third preview with new IO class and implicit java.base import), module imports (first preview), structured concurrency and scoped values (third preview, minor API change), class-file API (second preview), and stream gatherers (second preview unchanged). Final features include generational ZGC becoming the default mode when ZGC is selected, and Markdown (CommonMark) support in JavaDoc comments. Notable removals: string templates are pulled entirely from JDK 23 pending redesign, and Unsafe memory-access methods are deprecated for removal with a new flag to simulate future behavior. The JDK 23 branch also marks a shift from Mercurial-style forks to Git branches for prerelease code.

14m read timeFrom nipafx.dev
Post cover image
Table of contents
▚ Previews▚ The Novelty▚ Final Features▚ Deprecations▚ Outro

Sort: