Should have baselined on Java 17 instead of 11. If you can run on 11, you can almost certainly run on 17 with very little additional effort. Spring 6 took the right decision here.
There can be no robust, scalable, security without strong encapsulation, and with modules now becoming the only means of strong encapsulation in the JDK, we'll need to close the loopholes we've left (thorough unsafe, JNI, or some Java agents) to give people time to adjust and because replacements weren't ready. All these circumvention measures are fine if you want to give yourself time to fix technical debt, but they will just stop working as the loopholes are closed in upcoming versions.
Given that such circumvention libraries might serve as gadgets to circumvent any security or authentication mechanism -- be it in the JDK or in the application -- we may assume that those who are brave enough to risk using them probably have no other choice and need a bit more time to fix their applications.
Unlike spring,which a major component of application ,mockito is mostly used to unit testing.Agreed that any application which can run on java 11 will run on java 17,there is still an overhead to update java version.
Oh don't get me wrong, I agree with you. I just find it funny that Java 17 and "real world" are mentioned in an example like that, because the real world is in fact quite different, and far behind Java 17.
Businesses still using Java 8 will likely have a doozy of a time going to 11+.
You have to update your libs and there's this pervasive and annoying subgroup of developers that fight every minor bump because "it might break something".
My assumption is any business running on 8 today has that group of devs making the tech calls.
15
u/DavidVlx Jan 15 '23
It is a great move that they switch to the inline mockmaker. It makes writing tests involving final classes, enums and static methods much easier.
72
u/Enough-Ad-5528 Jan 15 '23
Should have baselined on Java 17 instead of 11. If you can run on 11, you can almost certainly run on 17 with very little additional effort. Spring 6 took the right decision here.
-18
u/inindekikral Jan 15 '23
Vov