Apache Commons DBCP 概览页面中提到:
DBCP 2.0 compiles and runs under Java 7 only (JDBC 4.1)
DBCP 1.4 compiles and runs under Java 6 only (JDBC 4)
DBCP 1.3 compiles and runs under Java 1.4-5 only (JDBC 3)
DBCP 2.0 binaries should be used by applications running under Java 7.
DBCP 1.4 binaries should be used by applications running under Java 6.
DBCP 1.3 should be used when running under Java 1.4 5.
在使用JDK 7编译的应用程序中,使用Apache Commons DBCP 1.4可能会出现哪些问题?
Connection.getSchema()
(自Java 1.7以来)会导致此错误:java.lang.AbstractMethodError: org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.getSchema()Ljava/lang/String; - Guillaume Husta