~/talk

Why and How to Upgrade to Java 17 (and Prepare for 21)

Talkat Java Day Istanbul 2023 · on Saturday, 2023-05-06· [java]
slides:none on file

Explains concrete upgrade steps: compile, run unit tests, package, run; use Docker for multiple JDKs; upgrade dependencies (often only lombok and test libs needed — five projects upgraded with few code changes). Lists breakages and fixes: strong encapsulation of JDK internals, use of --add-opens or upgrade libs, Mojito/ByteBuddy fix, Nashorn/JavaFX removed, JMC split out, missing fonts on Alpine. Notes class file majors: 61 => Java 17, 65 => Java 21, and recommends openrewrite and Dependabot/Renovate.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:24Reasons to upgrade Java
  3. 3:48Multi-release JARs explained
  4. 6:15Handling JDK internals changes
  5. 9:24Java 18 to 21 changes
  6. 11:12Class file version errors
  7. 12:41Automating upgrades with OpenRewrite
  8. 15:52Dependency and tool readiness
  9. 17:16Upgrading dependencies efficiently
  10. 20:44Step-by-step upgrade process
  11. 23:13Removed Java EE and CORBA modules
  12. 24:36Strongly encapsulated JDK internals
  13. 26:46Convincing management to upgrade
  14. 33:55Real-world upgrade challenges
  15. 37:24Resources for Java upgrades
  16. 39:11Testing with Docker
  17. 41:39Maven and Gradle configurations
  18. 44:25Compiling and testing steps
  19. 51:48Java 17 specific changes
  20. 54:38Finalization deprecation
  21. 57:33Using new Java 17 features
  22. 57:55OpenRewrite for code modernization
  23. 1:01:46Summary and next steps
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.