Migrating to Modules
summary
Live‑codes a tiny Java 8 app that parses a tweets.json and modularizes it on JDK 9, compiling module-info, using the JPS analysis tool to generate module declarations, and demonstrating automatic modules for existing Jackson jars. Shows the runtime failure from reflective access and fixes it with opens vs exports, compiles proper Jackson modules into mlib, uses jlink to build a trimmed runtime, explains add‑modules/unnamed‑module behavior and warns not to publish modules that depend on automatic module names.
AI-written summary · about
