I'm migrating project from Java 8 to Java 11, and modularity introduced in java 9 is giving me a headache. Couple jars have same packages, but different classes. This is giving me error
module SomeModule reads package my.package from both ModuleA and ModuleB
I wonder how to deal with cases like that, given that not all jars are under my control, refactoring is not a solution.