What problems can arise when using Apache Commons DBCP 1.4 on Java 7?

APCP Commons DBCP Overview Page :

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.

What problems can arise when using Apache Commons DBCP 1.4 on JVM 7 (from an application compiled with JDK 7)?

+4
source share
1 answer

The above limitations are related to the evolution of the JDBC APIs.

If you look at the java.sql.Connection interface and search for the “So:” markers, you will see that additional methods have been added to it in Java 6 or more in Java7.

DBCP , java.sql.Connection( , ), Java.

, DBCP 1.4 Java7, , InstantionErrors .

+4

Source: https://habr.com/ru/post/1538740/


All Articles