r/java • u/JustAGuyFromGermany • Dec 14 '25
Valhalla? Python? Withers? Lombok? - Ask the Architects at JavaOne'25
https://www.youtube.com/watch?v=tpnyamnEYbI
98
Upvotes
r/java • u/JustAGuyFromGermany • Dec 14 '25
View all comments
Show parent comment
1
u/davidalayachew Dec 16 '25
Lot's of good points. I see now how a lot of what we do with modules would be even more different than I thought. Maybe that friction matters more than I think.
Well, I don't know that I would call it hard.
99% of users have modules whose contents are going to be just several lines of
requiresandexports. That's the 99.999% use case of modules.It's only because the OpenJDK is dog-fooding so hard that we get all these other things.
Really, I still think the true failure of modules is how poorly introduced they were. If they went out the gate with "Here is how
requiresandexportswork, the rest only matters if your unshaded jars are measured in megabytes or you have a desperate need to modularize your code as much as possible", then modules would have been way more accepted.That, and they haven't incentivized making our code modular with enough goodies. When JEP 511: Module Import Declarations released, that was the push I needed to go update all of my legacy code to be modular. It makes maintenance so much easier, and THAT is a good enough reason to mess with my existing build pipeline for those projects. Before, it was only all new code that was modular.