Originally posted by deck
View Post
Announcement
Collapse
No announcement yet.
Java 21 / JDK 21 Reaches GA With Virtual Threads, Generational ZGC
Collapse
X
-
-
As far as migrating Java versions forward, at a previous job we had many thousands of tests that depended on a floating point rounding bug in Java 7. Of course we didn't know about the bug dependency until we tried to upgrade to 8 and got a wall of red in local builds and continuous integration tests. That took a few months of tedious work to fix.
I think a bigger problem is that a lot of aspect-oriented-programming/bytecode-enhancement libraries have specific dependencies to JDK versions. So you try to upgrade library Foo, and you discover it depends on Bar, and Bar depends on Baz, and Baz does bytecode manipulation and is locked to JDK version X or older. So you upgrade Foo to get a newer version of Baz, and it turns out that the new version of Foo has API changes. You and your teammates all know that eventually moving to a newer JDK version will pay for itself in the dual wins of improved runtime efficiency and more readable and maintainable code. And the sooner you can get to Lambdas/Streams/Records/better case statements/green threads/etc... the less code you'll need to rewrite later.
But selling your manager and the product team on the investment to upgrade Foo so you can upgrade your JDK? Good luck with that. They're not paid to care about an impossible to hard-quantify productivity boost in six months that will give even greater but still impossible to quantify boosts next year. Their performance is measured based on delivering features to customers this quarter.
Comment
-
Originally posted by bug77 View Post
Well, the world kinda removed SOAP, too, so removing it from core Java was definitely the right thing to do.
If you worry about deployment, you have jlink.
Comment
-
Originally posted by mcloud View Post
I'm not the world and lots of government stuff here are all SOAP. Can I use jlink with an EAR? don't think that's going to work on jbossLast edited by bug77; 23 September 2023, 05:59 PM.
- Likes 1
Comment
Comment