Hi,

I'm having issues with xerces 2.12.0 and JPMS / jigsaw (JAVA 11)


it clashes with jdk.xml.dom module from JAVA 11:


1) Here's the javadoc for jdk.xml.dom module:

https://docs.oracle.com/en/java/javase/11/docs/api/jdk.xml.dom/module-summary.html

-> Contains classes in org.w3c.dom.html package


2) This is where I get xerces 2.12.0 from:

https://mvnrepository.com/artifact/xerces/xercesImpl/2.12.0

Peeking inside the jar file, there is

org\w3c\dom\html\HTMLDOMImplementation.class


This results in "split package" which is illegal when compiling on the module 
path.


E.g. my intellij (2019.3) produces the following error, which is correct in my 
opinion:

Information:java: compiler message file broken: key=compiler.misc.msg.bug 
Information:java: java.lang.module.ResolutionException: Modules xercesImpl and 
jdk.xml.dom export package org.w3c.dom.html to module java.transaction


I have played around with xercesImpl-2.12.0.jar, removing the offending .class 
file and directory, and now module path and intellij seem to be ok.


Any idea how to approach this? I believe that in current status, xercesImpl 
2.12.0 is not compatible with JPMS once jdk.xml.dom module is required by other 
dependencies.


Thanks and BR

Reply via email to