[ 
https://issues.apache.org/jira/browse/XERCESJ-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16886793#comment-16886793
 ] 

John Ferguson commented on XERCESJ-1706:
----------------------------------------

Isn't this a duplicate of https://issues.apache.org/jira/browse/XERCESJ-1689 ?

> 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.9.1, 2.10.0, 2.12.0
>            Reporter: Thomas Pasch
>            Priority: Major
>
> 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.14#76016)

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

Reply via email to