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

Samael Bate commented on XERCESJ-1760:
--------------------------------------

I think either of the following pull requests resolve this split-packages 
problem:

[https://github.com/apache/xerces-j/pull/54/files]

[https://github.com/apache/xerces-j/pull/56/files]

and a release with these changes would resolve numerous related Jira issues 
across some other Apache projects such as BATIK-1289, LUCENE-10337

 

For users that use JPMS the xml-apis classes being bundled into xerces relates 
in errors:
{code:java}
reads package org.w3c.dom.css from both xml.apis and jdk.xml.dom
reads package org.w3c.dom.html from both xml.apis and jdk.xml.dom
reads package org.w3c.dom.stylesheets from both xml.apis and jdk.xml.dom
reads package org.w3c.dom.xpath from both xml.apis and jdk.xml.dom {code}
 

> Splitpackage not allowed on modulepath
> --------------------------------------
>
>                 Key: XERCESJ-1760
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1760
>             Project: Xerces2-J
>          Issue Type: Wish
>          Components: DOM (HTML)
>    Affects Versions: 2.12.2
>            Reporter: Kai Hofmann
>            Priority: Minor
>
> I am working with Java 17 completly based on the module path - so unit tests 
> also there - also using cucumber. When using
> <dependency>
>     <groupId>xerces</groupId>
>     <artifactId>xercesImpl</artifactId>
>     <version>2.12.2</version>
> </dependency>
> I got the following error message:
> Corrupted channel by directly writing to native stream in forked JVM 1. 
> Stream 'java.lang.module.ResolutionException: 
> Modules jdk.xml.dom and xercesImpl export package org.w3c.dom.html to module 
> io.cucumber.cucumberexpressions'.
>  
> Which ist a correct error, because on the modulepath split-packages are not 
> allowed!
> Within the xercesImpl-2.12.2.jar you export the package org.w3c.dom.html 
> which part of the jdk.xml.dom. And so this is a splitpackage.
>  
> So please fix that to make xerces2-j working with the java module system.
>  
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to