How Java 9 modules solve problems associated with transitive dependencies?
Clash Royale CLAN TAG #URR8PPP How Java 9 modules solve problems associated with transitive dependencies? I read that java 9 modules helps solving the problems that appears when pulling several versions of the same dependency due to transitive dependencies. I cannot see why. If you bring several modules you can obtain also the same problem. I mean, if one of the modules brings in one hamcrest version and others bring other test tools introducing versions 2, 3, 4 or whatever of mockito, or junit. How the modules helps with this issue? 1 Answer 1 When searching a module path for a module of a particular name, the module system takes the first definition of a module of that name. Version strings, if present, are ignored; if an element of a module path contains definitions of multiple modules with the same name then resolution fails and the compiler, linker, or virtual machine will report an error and e...