[pkg-db-devel] Bug#678187: db: Please ensure classes are backwards compatible with previous versions of java

Niels Thykier niels at thykier.net
Tue Jun 19 19:55:22 UTC 2012


Package: db
Version: 5.1.29-4
Severity: normal
User: ubuntu-devel at lists.ubuntu.com
Usertags: openjdk-7-transition

Hi,

Rebuilding db with Java7 causes the Java bindings to be compiled in
way requiring Java7 as minimum version.  Please consider explicitly
setting the target version to 1.5 as this the version supported by
all JVMs currently in Debian.

This can usually be achieved by passing "-source 1.5 -target 1.5"
to javac (perhaps via JAVAC_FLAGS in your case[1]) or by setting
the source/target version with ant to 1.5[2].

~Niels

[1] lang/sql/jdbc/Makefile.in contains a JAVAC_FLAGS

[2] The default values can be changed by setting the properties:
 * ant.build.javac.source
 * ant.build.javac.target

But they are overriden by "source" and "target" attributes for a given
<javac> tag.





More information about the pkg-db-devel mailing list