Bug#873250: FTBFS with Java 9: overrides core packages

Chris West solo-debianbugs at goeswhere.com
Fri Aug 25 19:43:00 UTC 2017


Source: xml-commons-external
Version: 1.4.01
Severity: normal
User: debian-java at lists.debian.org
Usertags: default-java9

This package fails to build with default-jdk pointing to openjdk-9-jdk.

It is trying to provide/override core classes, at source/compile time.
I'm not sure what the support status of this is. Compiling seems to
actually work, the build actually only crashes out during javadoc. Maybe
it's a bad example of this problem.

This package is still used (fop, freeplane, batik, xerces), despite not
apparently having had any updates since 2002. It must be doing something...

If you find a generic solution to this problem, please update the wiki:
https://wiki.debian.org/Java/Java9Pitfalls


Build log:

Constructing Javadoc information...
./javax/xml/XMLConstants.java:20: error: package exists in another module: java.xml
package javax.xml;
^
./org/w3c/dom/Attr.java:13: error: package exists in another module: java.xml
package org.w3c.dom;
^
./org/w3c/dom/CDATASection.java:13: error: package exists in another module: java.xml
package org.w3c.dom;


Cheers,
Chris.



More information about the pkg-java-maintainers mailing list