Appendix A. Future Java
This appendix discusses the future of Java, i.e., versions of Java beyond Java 25. Historically, we resisted adding forward-looking material to Java in a Nutshell, but the model of Feature and LTS Java releases (which we discussed in Chapter 1) has prompted a change of tack. As we mentioned there, our approach is to restrict the main text to fully delivered features and refer forward to this appendix for important features that are still in Incubating or Preview state.
Let’s start by covering how major development efforts are arranged within OpenJDK and then discuss what is known of forthcoming releases.
Long-Term JDK Projects
OpenJDK is organized into projects that cover specific major areas of ongoing work. This includes projects that are centered on the development of major future language or JVM features that can take multiyear efforts to deliver. They are usually known by their project codenames, and the projects that are currently most active are:
-
Loom
-
Panama
-
Valhalla
-
Leyden
We’ll discuss the projects in that order, especially because the second half of Project Panama depends upon Project Valhalla.
The first, Project Loom, is a new concurrency model for Java, and much of the expected functionality (including Virtual Threads and Scoped Values) has already been delivered, but a number of important aspects are still ongoing—including Structured Concurrency. As all the remaining parts of Loom are basically advanced enhancements to the vthreads ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access