Bug#706668: mysql-connector-java: FTBFS with openjdk-7

Verica_Lazova.str verica.lcroft at gmail.com
Fri May 3 06:22:33 UTC 2013


Package: mysql-connector-java
Version: 5.1.16-2
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)

Fails to build with openjdk-7 due to incompatibility with the newer version of
JDBC (abstract methods need to be overridden).
Here is the relevant part of the build log.

    [javac] /home/verica/mysql1/mysql-connector-
java-5.1.16/build/mysql-connector-java-5.1.16/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java:44:
error:
JDBC4LoadBalancedMySQLConnection is not abstract and does not override abstract
method getNetworkTimeout() in Connection
    [javac] public class JDBC4LoadBalancedMySQLConnection extends
    [javac]        ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

BUILD FAILED
/home/verica/mysql1/mysql-connector-java-5.1.16/build.xml:771:
Compile failed; see the compiler error output for details.

Total time: 11 seconds
make: *** [debian/stamp-ant-build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2


I propose a patch that fixes this issue as attachment.



-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-jdbc-override-abstract-methods.patch
Type: application/octet-stream
Size: 1543 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20130503/ca353481/attachment.obj>


More information about the pkg-java-maintainers mailing list