Bug#874660: FTBFS with Java 9: sun.misc

Chris West solo-debianbugs at goeswhere.com
Fri Sep 8 14:01:51 UTC 2017


Source: libxbean-java
Version: 4.5
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.
Please fix it, so that we can start the transition to Java 9.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls

sun.misc.URLClassPath seems to have been removed.

https://github.com/OpenHFT/Java-Thread-Affinity/issues/37 contains an
example of replacing it with real code.

Build log:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project xbean-classpath: Compilation failure: Compilation failure: 
[ERROR] /build/libxbean-java-4.5/xbean-classpath/src/main/java/org/apache/xbean/classpath/SunURLClassPath.java:[59,23] cannot find symbol
[ERROR]   symbol:   class URLClassPath
[ERROR]   location: package sun.misc
[ERROR] /build/libxbean-java-4.5/xbean-classpath/src/main/java/org/apache/xbean/classpath/SunURLClassPath.java:[52,17] cannot find symbol
[ERROR]   symbol:   class URLClassPath
[ERROR]   location: package sun.misc




Cheers,
Chris.



More information about the pkg-java-maintainers mailing list