How and Why to Upgrade to Java 17
summary
Explains upgrading from Java 8 (or 11) to 17 with concrete recipes: use multi-release jar to ship a Java 17 record while falling back to an older class on Java 8/11, build and test with a Dockerfile that compiles on Java 17 then runs the jar on 8 and 11 to compare behavior, expect most projects to upgrade in a day or two if dependencies are current, watch for removed modules (Jakarta EE, Nashorn), JDK internals requiring --add-opens or fallback flags, and errors referencing class file major version 61.
AI-written summary · about
chapters (16)
- 0:00Intro
- 0:45Questions
- 1:11Background
- 7:58Multi release JAR
- 11:37Releases
- 13:22What to upgrade?
- 14:48Removed
- 20:13Preparations
- 20:33Upgrade dependencies
- 21:40New package names
- 22:18Cooking
- 23:16Java 11
- 30:03Java 16: Lombok
- 30:33Java 17
- 33:24Gradle
- 37:24Summary








