Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1706

xercesImpl.jar does not adhere to the java 11 module system

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.9.1, 2.10.0, 2.12.0
    • Fix Version/s: None
    • Component/s: DOM (HTML)
    • Labels:
      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aanno Thomas Pasch
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: