r/java • u/ProdOrDev • Jul 31 '26
JEP 401: Value Objects And JEP 539: Strict Field Initialization Merged Into JDK
https://github.com/openjdk/jdk/commit/cc278dbb8a1ca0754d5842708b9029441055d361
185
Upvotes
View all comments
Show parent comment
2
u/grashalm01 Aug 02 '26
Module's are useless rn for library maintainers. Because even if you ship your library with a module descriptor people will put it on the class path and ignore your module descriptor as if it weren't there. And no don't expect your users to put your library on the module path because application developers couldn't care less about modules. Nobody wins currently, library devs get extra work with zero benefit.
The JDK does not have this problem because they can enforce module behavior for their libraries always.