Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.9.1, 2.10.0, 2.12.0
-
None
-
None
Description
If you use xercesImpl.jar with java 11 you will get the compile errors like this:
Modules jdk.xml.dom and xercesImpl export package org.w3c.dom.html to module asciidoctorj
This is because the xerces JAR share some (java class) code in the same packages that is included with the JVM, i.e. as org.w3c.dom.html.HTMLDOMImplementation is also included in Java JRE/JDK (at least for Java 11 and Java 8).
The new java 11 (or java 9) module system does not like this kind of 'split jars'. The agreed-upon long-term solution to split jars is to separate the package namespaces.
In the case reported here, the solution is simple: just remove org.w3c.dom.html.HTMLDOMImplementation from the (distribution) JAR.