Java Modules (jigsaw) does not allow users to load JAR files that export the same package.
Mutually-exclusive JAR files (e.g. FIX42, FIX44 JAR files) are allowed to export the same package, but users cannot import quickfixj-core and quickfixj-messages-fix44 simultaneously because they export the same package. Doing so results in the following compile-time error message:
the unnamed module reads package quickfix.field from both quickfixj.messages.fix44 and quickfixj.core
module quickfixj.messages.fix44 reads package quickfix.field from both quickfixj.core and quickfixj.messages.fix44
module quickfixj.core reads package quickfix.field from both quickfixj.messages.fix44 and quickfixj.core
Please refactor the artifacts so JAR files that must be imported together do not export the same package.
|