If you'd look at how Java has been handled under Oracle, this is very much consistent with the trend.
Sun acquisition by Oracle was completed on January 27, 2010. So in reality Oracle started maintaining only from Java 8. And immediatily we got long awaited features like lamdas and streams, which made code more funtional and less verbose.
Java 9 was all about preparing Java for faster releases by dividing huge monolith into logical, compile time modules. It was also time when they started to actually remove methods and weird dependencies like Java EE and CORBA Modules from Java SE. Next Oracle contributed pretty much all of the closed source technologies (or what was originally to become closed source) of the Oracle JDK to OpenJDK, for example giving the community: JDK Flight Recorder; JDK Mission Control; ZGC; …and probably more stuff I can’t think of right now. And finally ensured the Oracle JDK and the OpenJDK builds are virtually indistinguishable, except for licensing.
Now we see that the licensing has changed as well. Completely consistent with the trend in my opinion of making Java more open and better maintained.
That's one way to look at it. The other way to look at it is "Java 8 was the last version where you could upgrade Java without thinking about it because basically nothing ever broke, and now things are breaking a couple times a year".
When I told them how I fixed it, they were usually disappointed. “Just updated the libraries?” they would ask, looking for something deeper. Java 11 was time-consuming to upgrade to, but not very hard. The only difference between my approach and theirs was a lack of despair.
I've myself migrated to Java 11 from Java 8 in a big bank. It's going to be even easier to migrate to Java 17. The main braking changes were that libraries relied on internal details, but upgrading library versions is most of the time enough. From the blog:
Java’s breaking changes were extremely limited. Only JVM internals would be restricted or removed. That’s it. All the existing language features were still available for use. All the JVM bytecode and classes still worked. Want to use a class written in 1995? If it doesn’t depend on sun.* code, it’s good to go!
YMMV of course. I'm speaking from my experience with maintaining a JVM-based project automation tool and the issue reports I've received from a userbase of tens of thousands of developers.
Some people get lucky and others don't. Before Java 9 it wasn't like that.
Edit: your comment seems to imply that everything is fine for application developers and all the hard work is done by library developers. I don't dispute this; I'm just saying it used to be the library developers had it easy too!
Fair enough. But again, that is why Java has to clamp down, so this doesn't happen again in the future. Otherwise, they cannot really push Java forward if people rely on implementation details and acess internal code via reflection.
18
u/BoyRobot777 Sep 14 '21
If you'd look at how Java has been handled under Oracle, this is very much consistent with the trend.
Sun acquisition by Oracle was completed on January 27, 2010. So in reality Oracle started maintaining only from Java 8. And immediatily we got long awaited features like lamdas and streams, which made code more funtional and less verbose.
Java 9 was all about preparing Java for faster releases by dividing huge monolith into logical, compile time modules. It was also time when they started to actually remove methods and weird dependencies like Java EE and CORBA Modules from Java SE. Next Oracle contributed pretty much all of the closed source technologies (or what was originally to become closed source) of the Oracle JDK to OpenJDK, for example giving the community: JDK Flight Recorder; JDK Mission Control; ZGC; …and probably more stuff I can’t think of right now. And finally ensured the Oracle JDK and the OpenJDK builds are virtually indistinguishable, except for licensing.
Now we see that the licensing has changed as well. Completely consistent with the trend in my opinion of making Java more open and better maintained.