Bug#873999: FTBFS with Java 9 due to -source/-target only

Chris West solo-debianbugs at goeswhere.com
Fri Sep 1 20:12:33 UTC 2017


Source: rxtx
Version: 2.2pre2
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.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls

An automated tool has decided that this package will build fine if the
-source and -target options are changed to 1.6; no additional changes
are required. This was done by building with a compiler that changed
the settings automatically, then the real compiler, and diffing the
results. This modified compiler will never be part of Debian.

ant and Maven are supposed to do this for you, and I've tried to check
that this package is not using ant or Maven correctly, but I might have
messed up.

Build log sample:

make[2]: Entering directory '/build/rxtx-2.2pre2'
/usr/lib/jvm/java-9-openjdk-amd64/bin/javac -classpath .:/build/rxtx-2.2pre2:/build/rxtx-2.2pre2/src: -d /build/rxtx-2.2pre2/ -O -source 1.3 -target 1.3 /build/rxtx-2.2pre2/./src/gnu/io/UnsupportedCommOperationException.java /build/r...
warning: [options] bootstrap class path not set in conjunction with -source 1.3
error: Source option 1.3 is no longer supported. Use 1.6 or later.
error: Target option 1.3 is no longer supported. Use 1.6 or later.
Makefile:832: recipe for target '/build/rxtx-2.2pre2/gnu/io/UnsupportedCommOperationException.class' failed
make[2]: Leaving directory '/build/rxtx-2.2pre2'

Cheers,
Chris.



More information about the pkg-java-maintainers mailing list