Bug#875336: FTBFS with Java 9: _ as identifier
Chris West
debian at fau.xxx
Sun Sep 10 18:56:33 UTC 2017
Source: bnd
Version: 2.4.1
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
Using _ as an identifier is not allowed at -source 9; use older -source
or fix the code.
The package is a very old version; upstream fixed the code > 6 years
ago, so updating would probably fix it.
Build log:
[mkdir] Created dir: /build/bnd-2.4.1/bootstrap/build
[javac] /build/bnd-2.4.1/debian/bootstrap.xml:15: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 427 source files to /build/bnd-2.4.1/bootstrap/build
[javac] /build/bnd-2.4.1/aQute.libg/src/aQute/lib/collections/ExtList.java:19: error: as of release 9, '_' is a keyword, and may not be used as an identifier
[javac] public ExtList(Collection<T> _) {
[javac] ^
[javac] /build/bnd-2.4.1/aQute.libg/src/aQute/lib/collections/ExtList.java:20: error: as of release 9, '_' is a keyword, and may not be used as an identifier
[javac] super(_);
[javac] ^
Cheers,
Chris.
More information about the pkg-java-maintainers
mailing list