Re:JDK 10: General Availability
by throwaway2048 on Wednesday March 21, 2018 @11:19AM
(#16638765)
For what its worth, every single java application I use broke entirely with java 9.
My only experience with it was after giving a Java 8 jar to someone who ran in on a Java 9 jvm and it crashed immediately.
This is the first time that has happened to me in nearly 20 years of using java.
You are just repeating that it's fundamentally the user's fault because they "should not be doing that". A properly designed tool prevents incorrect usage. If a version of Java allows you to do something and that something proves to be very useful to GET THE JOB DONE, then I'm with Linus - the blame is not with the user.
For example, there was simply no alternative to using Unsafe in the past to get reasonable Java performance for certain task. The fact that it was there allowed me to resist the pressure to move a significant part of our codebase to C++. Of course we "should not be doing that" (using Unsafe) but the alternative was abandoning a large existing code base and hiring a bunch of C++ experts or retraining our existing developers or spending 10 times as much on our server capacity. Using Unsafe was a simple pragmatic decision. You cannot say it was "wrong" without knowing all the factors that went into the decision.
This is why I like Linus' stance in this case.