~/talk

How and Why to Upgrade to Java 17

Talkat JCON-ONLINE 2021 · 2021-10-05..10-08· [java, software-architecture]
slides:none on file

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

  1. 0:00Intro
  2. 0:45Questions
  3. 1:11Background
  4. 7:58Multi release JAR
  5. 11:37Releases
  6. 13:22What to upgrade?
  7. 14:48Removed
  8. 20:13Preparations
  9. 20:33Upgrade dependencies
  10. 21:40New package names
  11. 22:18Cooking
  12. 23:16Java 11
  13. 30:03Java 16: Lombok
  14. 30:33Java 17
  15. 33:24Gradle
  16. 37:24Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.