mysql-connector-java version 5.1.16-2 failed to build with openjdk-7

Bug #888985 reported by James Page
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-connector-java (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

During a rebuild test on precise with default-jdk switched to openjdk-7, a build failure was detected for mysql-connector-java version 5.1.16-2.

See attached log for full build failure details.

This log snippet might also be of interest:

    [javac] 1069. WARNING in /«PKGBUILDDIR»/build/mysql-connector-java-5.1.16/com/mysql/jdbc/util/LRUCache.java (at line 49)
    [javac] protected boolean removeEldestEntry(En
    [javac] try eldest) {
    [javac] ^^^^^
    [javac] Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
    [javac] ----------
    [javac] ----------
    [javac] 1070. WARNING in /«PKGBUILDDIR»/build/mysql-connector-java-5.1.16/com/mysql/jdbc/util/PropertiesDocGenerator.java
    [javac] (at line 36)
    [javac] public class PropertiesDocGenerator extends ConnectionPropertiesImpl {
    [javac] ^^^^^^^^^^^^^^^^^^^^^^
    [javac] The serializable class PropertiesDocGenerator does not declare a static final serialVersionUID field of type long
    [javac] ----------
    [javac] ----------
    [javac] 1071. WARNING in /«PKGBUILDDIR»/build/mysql-connector-java-5.1.16/com/mysql/jdbc/util/ServerController.java
    [javac] (at line 174)
    [javac] String defaultsFilePath = getServerProps().getProperty(
    [javac] ^^^^^^^^^^^^^^^^
    [javac] The local variable defaultsFilePath is never read
    [javac] ----------
    [javac] 1072. WARNING in /«PKGBUILDDIR»/build/mysql-connector-java-5.1.16/com/mysql/jdbc/util/ServerController.java (at line 294)
    [javac] for (Iterator iter = this.serverProps.keySet().iterator(); iter
    [javac] ^^^^^^^^
    [javac]
    [javac] Iterator is a raw type. References to generic type Iterator<E> should be parameterized
    [javac] ----------
    [javac] 1072 problems (1072 warnings)

compile-driver-jdbc4:
    [javac] /«PKGBUILDDIR»/build.xml:771: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 34 source files to /«PKGBUILDDIR»/build/mysql-connector-java-5.1.16
    [javac] /«PKGBUILDDIR»/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
/«PKGBUILDDIR»/build.xml:771: Compile failed; see the compiler error output for details.

Total time: 13 seconds
make: *** [debian/stamp-ant-build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
────────────────────────────────────────────────────────────────────────────────
Build finished at 20111110-1133

Finished
────────

E: Build failure (dpkg-buildpackage died)

Revision history for this message
James Page (james-page) wrote : Build log
tags: added: amd64 auto java7-ftbfs
James Page (james-page)
tags: added: api
Revision history for this message
James Page (james-page) wrote :

Reconfirmed in Ubuntu Quantal - adding ftbfs tag.

tags: added: ftbfs
Revision history for this message
Logan Rosen (logan) wrote :

I packaged the newest version of mysql-connector-java (5.1.20) locally, but it still didn't build with the same exact error message, unfortunately.

Changed in mysql-connector-java (Ubuntu):
status: New → Confirmed
Revision history for this message
Emmanuel Bourg (ebourg) wrote :

This was fixed in 5.1.25-1

Changed in mysql-connector-java (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.