This project covers the Java 14 new features. Java 14 is planned to be generally available in March 2020. At this moment I cover only the syntactical features, but by the GA date I plan to cover all the list available at https://openjdk.java.net/projects/jdk/14/.
The code is available in this project and the explanation and commentary is available in a set of youtube videos. Follow the links below for details.
If you are in the inpatient mode, just start browsing the code. If you have trouble understanding the structure, then maybe it would be good to spend several minutes on the introductory video 📺 (it covers the agenda, logistics, code structuring, presentation style etc.).
If you plan to binge-watch the series, I created a playlist 🎥.
JEP # | JEP Name | Status | Video Link | Source Link |
---|---|---|---|---|
361 | Switch Expressions | Standard | 📺 | 📜 |
368 | Text Blocks | Second Preview | 📺 | 📜 |
305 | Pattern Matching for instanceof | Preview | 📺 | 📜 |
359 | Records | Preview | 📺 | 📜 |
JEP # | JEP Name | Status | Video Link | Source Link |
---|---|---|---|---|
358 | Helpful NullPointerExceptions | Implemented | 📺 | 📜 |
JEP # | JEP Name | Status | Video Link | Source Link |
---|---|---|---|---|
370 | Foreign-Memory Access API | Incubator | 📺 | 📜 |
While working on this material, I discovered many other good sources (different than the official OpenJDK site) covering the new Java features. I decided to promote the ones that I liked, especially that they address the topic in a different format than the one I use:
- FOSDEM'20 has a lot of talks and I can enumerate a few that I personally saw:
- State of OpenJDK by Mark Reinhold, the Chief Architect of the Java Platform Group at Oracle.
- ByteBuffers are dead, long live ByteBuffers!, a talk about JEP 370, by the owner of that JEP, Maurizio Cimadamore.
- Helpful NullPointerExceptions - The little thing that became a JEP by Christoph Langer, engineer in SAP's Java VM team.
- Vividcode.io did a good job writing about the features and also providing code on GitHub.
- Infoq.com did a summarization, but there is no deepdive there nor code available.
- Aboullaite.me addresses some of the new topics (the format is blogging).