libcommons-dbcp-java version 1.4-1ubuntu1 failed to build with openjdk-7

Bug #888125 reported by James Page
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libcommons-dbcp-java (Ubuntu)
Fix Released
Medium
James Page

Bug Description

During a rebuild test on precise with default-jdk switched to openjdk-7, a build failure was detected for libcommons-dbcp-java version 1.4-1ubuntu1.

See attached log for full build failure details.

This log snippet might also be of interest:

    [javac] /«PKGBUILDDIR»/src/java/org/apache/commons/dbcp/DelegatingResultSet.java:61: error: DelegatingResultSet is not abstract and does not override abstract method <T>getObject(String,Class<T>) in ResultSet
    [javac] public class DelegatingResultSet extends AbandonedTrace implements ResultSet {
    [javac] ^
    [javac] where T is a type-variable:
    [javac] T extends Object declared in method <T>getObject(String,Class<T>)
    [javac] /«PKGBUILDDIR»/src/java/org/apache/commons/dbcp/PoolableCallableStatement.java:38: error: PoolableCallableStatement is not abstract and does not override abstract method <T>getObject(String,Class<T>) in CallableStatement
    [javac] public class PoolableCallableStatement extends DelegatingCallableStatement implements CallableStatement {
    [javac] ^
    [javac] where T is a type-variable:
    [javac] T extends Object declared in method <T>getObject(String,Class<T>)
    [javac] /«PKGBUILDDIR»/src/java/org/apache/commons/dbcp/PoolablePreparedStatement.java:41: error: PoolablePreparedStatement is not abstract and does not override abstract method isCloseOnCompletion() in Statement
    [javac] public class PoolablePreparedStatement extends DelegatingPreparedStatement implements PreparedStatement {
    [javac] ^
    [javac] /«PKGBUILDDIR»/src/java/org/apache/commons/dbcp/PoolingConnection.java:45: error: PoolingConnection is not abstract and does not override abstract method getNetworkTimeout() in Connection
    [javac] public class PoolingConnection extends DelegatingConnection implements Connection, KeyedPoolableObjectFactory {
    [javac] ^
    [javac] /«PKGBUILDDIR»/src/java/org/apache/commons/dbcp/PoolingDataSource.java:45: error: PoolingDataSource is not abstract and does not override abstract method getParentLogger() in CommonDataSource
    [javac] public class PoolingDataSource implements DataSource {
    [javac] ^
    [javac] /«PKGBUILDDIR»/src/java/org/apache/commons/dbcp/PoolingDriver.java:52: error: PoolingDriver is not abstract and does not override abstract method getParentLogger() in Driver
    [javac] public class PoolingDriver implements Driver {
    [javac] ^
    [javac] /«PKGBUILDDIR»/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java:87: error: DriverAdapterCPDS is not abstract and does not override abstract method getParentLogger() in CommonDataSource
    [javac] public class DriverAdapterCPDS
    [javac] ^
    [javac] /«PKGBUILDDIR»/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java:60: error: PerUserPoolDataSource is not abstract and does not override abstract method getParentLogger() in CommonDataSource
    [javac] public class PerUserPoolDataSource
    [javac] ^
    [javac] /«PKGBUILDDIR»/src/java/org/apache/commons/dbcp/datasources/SharedPoolDataSource.java:52: error: SharedPoolDataSource is not abstract and does not override abstract method getParentLogger() in CommonDataSource
    [javac] public class SharedPoolDataSource
    [javac] ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 15 errors
    [javac] 1 warning

BUILD FAILED
/«PKGBUILDDIR»/build.xml:197: Compile failed; see the compiler error output for details.

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

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 :

JDBC 4.1 introduces some automated resource management features through introduction of the try with resources language features.

commons-dbcp 1.4 is targeted at Java 1.6 (JDBC 4) so does not implement these features.

The resulting patchset to implement/no-op optional features is quite large.

Changed in libcommons-dbcp-java (Ubuntu):
status: New → In Progress
assignee: nobody → James Page (james-page)
importance: Undecided → Medium
Revision history for this message
James Page (james-page) wrote :

Endeavoring to find out from upstream if JDBC4.1 support is on the roadmap

James Page (james-page)
Changed in libcommons-dbcp-java (Ubuntu):
status: In Progress → Confirmed
assignee: James Page (james-page) → nobody
James Page (james-page)
Changed in libcommons-dbcp-java (Ubuntu):
assignee: nobody → James Page (james-page)
James Page (james-page)
Changed in libcommons-dbcp-java (Ubuntu):
status: Confirmed → In Progress
milestone: none → quantal-alpha-2
Revision history for this message
James Page (james-page) wrote :

No response on mailing list so raised a bug instead - https://issues.apache.org/jira/browse/DBCP-385

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libcommons-dbcp-java - 1.4-1ubuntu2

---------------
libcommons-dbcp-java (1.4-1ubuntu2) quantal; urgency=low

  * Fix FTBFS with openjdk-7 (LP: #888125):
    - debian/patches/02_java7_compat.patch: Cherry picked patch from
      Fedora transition for compatibility with Java 7.
  * d/control: Use libgeronimo-jta-1.1-spec-java instead of deprecated
    libgeronimo-jta-1.0.1b-spec-java.
 -- James Page <email address hidden> Fri, 08 Jun 2012 10:02:16 +0100

Changed in libcommons-dbcp-java (Ubuntu):
status: In Progress → 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.