Well, we weren't wrong. All code in Java 9 needs to be in modules. And all modules need to have the right readability and accessibility relationships for applications to work. But that might be problematic! Because, as with every new Java release, there are thousands of developers trying to run their legacy Java code bases using the new Java version. If we were to expect each legacy Java code base to be wrapped into modules before it can even run in Java 9, which would introduce a significant cost of effort in the developer community. Thankfully, there's a way out. When you are using Java 9 to compile or run legacy module-less Java code in the classpath, you don't have to manually create module wrappers yourself. The platform ...
The unnamed module
Get Modular Programming in Java 9 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.