ant is upgrading the -source and -target options passed to javac, such
that they are a minimum of 1.6, to fix projects compiling with Java 9.
However, as we still have this crazy notion that we should ship javadoc,
many packages are immediately trying to build javadoc after the code has
compiled, and are passing "-source 1.4" along to their javadoc
Please also fix the source version, to a minimum of 1.6, in this case.
A good, small, fast example package for this is docbook-xsl-saxon. It
even builds with a different JAVA_HOME if you delete the JAVA_HOME
declaration from debian/rules:
[javac] Use of a source 1.4 is no longer supported, switching to 1.6
[javac] Use of a target 1.4 is no longer supported, switching to 1.6
[javac] Compiling 21 source files to
[mkdir] Created dir:
[javadoc] Warning: Leaving out empty argument '-windowtitle'
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] 1 error
[javadoc] error: Source option 1.4 is no longer supported. Use 1.6 or later.
The -source argument comes from the nbproject, via.
This is the maintainer address of Debian's Java team
debian-j...@lists.debian.org for discussions and questions.