Java 22 Delivers Foreign Memory & Memory API, Unnamed Variables & Patterns, And Return Of JavaOne
InfoQ, Tuesday, March 19th, 2024
Oracle has released version 22 of the Java programming language and virtual machine.
- JEP 423: Region Pinning for G1
- JEP 447: Statements before super(...) (Preview)
- JEP 454: Foreign Function & Memory API
- JEP 456: Unnamed Variables & Patterns
- JEP 457: Class-File API (Preview)
- JEP 458: Launch Multi-File Source-Code Programs
- JEP 459: String Templates (Second Preview)
- JEP 460: Vector API (Seventh Incubator)
- JEP 461: Stream Gatherers (Preview)
- JEP 462: Structured Concurrency (Second Preview)
- JEP 463: Implicitly Declared Classes and Instance Main Methods (Second Preview)
- JEP 464: Scoped Values (Second Preview)
Two of these - Foreign Function & Memory API and Unnamed Variables & Patterns - have completed their respective rounds of previews and are now finalized.
As shown in the graph below, the feature cadence for JDK 22 is similar to that of the previous releases dating back four years to JDK 14 with the exception of JDK 18, JDK 19 and JDK 20.