Source: ant Version: 1.9.9-4 Severity: wishlist User: debian-j...@lists.debian.org Usertags: default-java9
ant has been taught to upgrade the -source and -target versions to 1.6, to support Java 9. However, if a package specifies: -Dant.build.javac.source=1.5 ... then this override is skipped. Example package: airport-utils (Can you tell I read lists in alphabetical order?) https://sources.debian.net/src/airport-utils/2-6/debian/rules/#L7 jar-compile: [javac] /var/tmp/faux170901.breezy/airport-utils-2/airport2config-build/build.xml:50: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 46 source files to /var/tmp/faux170901.breezy/airport-utils-2/airport2config-build/build [javac] error: Source option 1.5 is no longer supported. Use 1.6 or later. [javac] error: Target option 1.5 is no longer supported. Use 1.6 or later. I believe the issue is that Javac#getSource() ignores the "source" field if this property is set: https://sources.debian.net/src/ant/1.9.9-4/src/main/org/apache/tools/ant/taskdefs/Javac.java/#L208 ..and the patch only affects setting the field. Maybe move the fix to getSource()? https://sources.debian.net/src/ant/1.9.9-4/debian/patches/0013-auto-adjust-target.patch/ Cheers, Chris. __ This is the maintainer address of Debian's Java team <http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. Please use debian-j...@lists.debian.org for discussions and questions.