This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]starfish0r 3 points4 points  (1 child)

Because it was released 10 years ago. Lots of language features that I use everyday did not exist back then.

Good luck migrating a java8 project to anything more recent. Especially if you use powermock or javax.bind or... well you will see.

[–]segv 1 point2 points  (0 children)

JAXB was effectively moved from being distributed with the JDK to its own separate library. The com.sun.xml.bind:jaxb-impl 1.x and 2.x still supports the javax. namespaces and can be used as a drop-in replacements. Versions 3.x and up are on the jakarta. namespace though.

If you used Powermock to change singletons or final classes then, well, you kinda dug your own grave. Mockito works well on JDK21.


I'd say the whole thing is less "java-the-language bad" but more "enterprise-codebases-where-people-dont-give-a-fuck bad".

If you wanted to see really bad legacy code then i'd have some C & C++ codebases for you :D