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 "ASF GitHub Bot (JIRA)" <xe...@xml.apache.org> on 2019/01/27 09:40:00 UTC
[jira] [Commented] (XERCESJ-1706) xercesImpl.jar does not adhere to
the java 11 module system
[ https://issues.apache.org/jira/browse/XERCESJ-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16753333#comment-16753333 ]
ASF GitHub Bot commented on XERCESJ-1706:
-----------------------------------------
GitHub user aanno opened a pull request:
https://github.com/apache/xerces2-j/pull/15
XERCESJ-1706: xercesImpl.jar does not adhere to the java 11 module sy…
see https://issues.apache.org/jira/browse/XERCESJ-1706
This PR fixes the problem.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aanno/xerces2-j feature/pr-xercesj-1706-1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/xerces2-j/pull/15.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #15
----
commit 4e1123f80fa36666f05ad9f0ddf80470d76198cb
Author: Thomas Pasch <th...@...>
Date: 2019-01-27T09:37:31Z
XERCESJ-1706: xercesImpl.jar does not adhere to the java 11 module system
----
> 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.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org