You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Thomas Pasch (JIRA)" <xe...@xml.apache.org> on 2019/01/27 09:31:00 UTC

[jira] [Created] (XERCESJ-1706) xercesImpl.jar does not adhere to the java 11 module system

Thomas Pasch created XERCESJ-1706:
-------------------------------------

             Summary: xercesImpl.jar does not adhere to the java 11 module system
                 Key: XERCESJ-1706
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1706
             Project: Xerces2-J
          Issue Type: Bug
          Components: DOM (HTML)
    Affects Versions: 2.12.0, 2.10.0, 2.9.1
            Reporter: Thomas Pasch


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org