OpenJDK 17 part 2
summary
Covers concrete migration-ready changes in JDK 12–17: a Foreign-Memory Access API that allocates native segments (example: 100 bytes, sequence of 25 32-bit ints) and the Foreign Linker API for downcall handles; records become truly final and support local records; sealed classes restrict subclasses via permits; Vector API shows a 256-bit AVX2 example delivering ~4× throughput vs scalar loops; helpful NPEs require -XX:+ShowCodeDetailsInExceptionMessages; jpackage, mapMulti, toList, removals (CMS, Nashorn, AOT bits) and Azul Zulu OpenJDK builds and support.
AI-written summary · about
chapters (17)
- 0:00Introduction and recap
- 1:13Foreign memory access API
- 7:10Helpful null pointer exceptions
- 8:54Packaging tool revival
- 10:39Sealed classes in JDK 15
- 17:49Records improvements
- 21:28Pattern matching for switch
- 23:34Stream mapMulti changes
- 27:03Stream toList simplification
- 28:09Period of day formatting
- 28:52Vector API overview
- 35:37Foreign linker API
- 39:33Value-based class warnings
- 40:37Pattern matching for switch
- 45:10Removed and deprecated features
- 48:22Azul Zulu OpenJDK distribution
- 49:27Conclusion and Q&A
