Kai Hofmann created XERCESJ-1760:
------------------------------------
Summary: Splitpackage not allowed on modulepath
Key: XERCESJ-1760
URL: https://issues.apache.org/jira/browse/XERCESJ-1760
Project: Xerces2-J
Issue Type: Bug
Components: DOM (HTML)
Affects Versions: 2.12.2
Reporter: Kai Hofmann
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]