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-
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

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

Attachment: 0002-jdbc-override-abstract-methods.patch
Description: Binary data

This is the maintainer address of Debian's Java team
Please use for discussions and questions.

Reply via email to