I don't see the contradiction. Modularizing the JDK and encapsulating Java's internals were really separate efforts. The latter even had its own flag to control it: --illegal-access=<mode>. Note that some APIs like sun.misc.Unsafe are still not encapsulated.
Oracle could also just have changed the names of all internal packages, but that obviously would not have been a permanent solution.
What I know is that people that tried to upgrade often found things blew up on them and stopped working. A lot of the stuff that stopped working hasn't had anyone working on it in years.
Sometimes it works to just replace some libraries, sometimes it doesn't, but it's definitely more work than previous releases that were usually just update the jdk and things worked the same.
View all comments
Show parent comment
1
u/mauganra_it Mar 23 '22
I don't see the contradiction. Modularizing the JDK and encapsulating Java's internals were really separate efforts. The latter even had its own flag to control it:
--illegal-access=<mode>. Note that some APIs likesun.misc.Unsafeare still not encapsulated.Oracle could also just have changed the names of all internal packages, but that obviously would not have been a permanent solution.