Previously to java 9, if one library externallib.jar had a bug in a class e.g. org.package.externalpackage.A, and I was able to correct it, I included the fixed class into tomcat's WEB-INF/classes like this:
WEB-INF/classes/org/package/externalpackage/A.class
which overrides the externallib.jar's A class.
As of java 9, this is not permitted in modular projects, as same packages (here org.package.externalpackage) are not allowed in different modules (the jar's module and my module).
What is the correct way to achieve this in java version as of 9?