JDK 9, 10 and 11: Pitfalls For The Unwary
summary
Migration checklist for JDK 9–11: modularity enforces encapsulation so class‑path stays the unnamed module, use jdeps to list module deps and jlink to build a slim runtime (jlink works even without full modularization). Expect removed APIs and tools: six methods deleted, java.se aggregator gone in 11, JavaFX separated, browser plug‑in and WebStart removed. Command‑line churn is large (JDK9 removes ~187 -X flags, adds 123); illegal‑access defaults permit but supports warn/debug/deny. Check GC unified logging and reserved single underscore.
AI-written summary · about
chapters (14)
- 0:00Start
- 2:38JDK 9: Big And Small Changes
- 14:00Classpath v Modulepath Unnamed module
- 14:44Reversing Encapsulation
- 18:58Finding Dependencies: jdeps
- 23:26Finding Deprecated API Use
- 26:19New Version String Format (JEP 223)
- 29:02Removed GC Options (JEP 214)
- 30:12Replaced JVM Flags
- 30:48Deprecated JVM Flags
- 31:00JVM Flags: Non-Starters
- 35:04Command Line Flags
- 39:46Tools Affected
- 43:16Command Line-XX Flags








