Source compatibility report for the DBCP library between 1.1 and 1.2 versions
Test Info
Library Name | DBCP |
Version #1 | 1.1 |
Version #2 | 1.2 |
Test Results
Total Java ARchives | 1 |
---|
Total Methods / Classes | 960 / 43 |
---|
Verdict | Incompatible (21.7%) |
Problem Summary
| Severity | Count |
---|
Added Methods | - | 16 |
---|
Removed Methods | High | 2 |
---|
Problems with Data Types | High | 6 |
---|
Medium | 2 |
Low | 0 |
Problems with Methods | High | 0 |
---|
Medium | 2 |
Low | 0 |
Other Changes in Data Types | - | 1 |
Added Methods (16)
commons-dbcp-1.2.jar, BasicDataSource.class
package org.apache.commons.dbcp
BasicDataSource.getInitialSize ( ) : int
[mangled: org/apache/commons/dbcp/BasicDataSource.getInitialSize:()I]
BasicDataSource.removeConnectionProperty ( String name ) : void
[mangled: org/apache/commons/dbcp/BasicDataSource.removeConnectionProperty:(Ljava/lang/String;)V]
BasicDataSource.setInitialSize ( int initialSize ) : void
[mangled: org/apache/commons/dbcp/BasicDataSource.setInitialSize:(I)V]
commons-dbcp-1.2.jar, BasicDataSourceFactory.class
package org.apache.commons.dbcp
BasicDataSourceFactory.createDataSource ( Properties properties ) [static] : DataSource
[mangled: org/apache/commons/dbcp/BasicDataSourceFactory.createDataSource:(Ljava/util/Properties;)Ljavax/sql/DataSource;]
commons-dbcp-1.2.jar, DelegatingCallableStatement.class
package org.apache.commons.dbcp
DelegatingCallableStatement.setDelegate ( CallableStatement s ) : void
[mangled: org/apache/commons/dbcp/DelegatingCallableStatement.setDelegate:(Ljava/sql/CallableStatement;)V]
commons-dbcp-1.2.jar, DelegatingConnection.class
package org.apache.commons.dbcp
DelegatingConnection.handleException ( SQLException e ) : void
[mangled: org/apache/commons/dbcp/DelegatingConnection.handleException:(Ljava/sql/SQLException;)V]
commons-dbcp-1.2.jar, DelegatingResultSet.class
package org.apache.commons.dbcp
DelegatingResultSet.handleException ( SQLException e ) : void
[mangled: org/apache/commons/dbcp/DelegatingResultSet.handleException:(Ljava/sql/SQLException;)V]
commons-dbcp-1.2.jar, DelegatingStatement.class
package org.apache.commons.dbcp
DelegatingStatement.handleException ( SQLException e ) : void
[mangled: org/apache/commons/dbcp/DelegatingStatement.handleException:(Ljava/sql/SQLException;)V]
DelegatingStatement.isClosed ( ) : boolean
[mangled: org/apache/commons/dbcp/DelegatingStatement.isClosed:()Z]
commons-dbcp-1.2.jar, PoolableConnectionFactory.class
package org.apache.commons.dbcp
PoolableConnectionFactory.PoolableConnectionFactory ( ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, Boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation, String defaultCatalog, AbandonedConfig config )
[mangled: org/apache/commons/dbcp/PoolableConnectionFactory."<init>":(Lorg/apache/commons/dbcp/ConnectionFactory;Lorg/apache/commons/pool/ObjectPool;Lorg/apache/commons/pool/KeyedObjectPoolFactory;Ljava/lang/String;Ljava/lang/Boolean;ZILjava/lang/String;Lorg/apache/commons/dbcp/AbandonedConfig;)V]
commons-dbcp-1.2.jar, PoolablePreparedStatement.class
package org.apache.commons.dbcp
PoolablePreparedStatement.activate ( ) : void
[mangled: org/apache/commons/dbcp/PoolablePreparedStatement.activate:()V]
PoolablePreparedStatement.passivate ( ) : void
[mangled: org/apache/commons/dbcp/PoolablePreparedStatement.passivate:()V]
commons-dbcp-1.2.jar, PoolingDriver.class
package org.apache.commons.dbcp
PoolingDriver.closePool ( String name ) : void
[mangled: org/apache/commons/dbcp/PoolingDriver.closePool:(Ljava/lang/String;)V]
PoolingDriver.getPoolNames ( ) : String[ ]
[mangled: org/apache/commons/dbcp/PoolingDriver.getPoolNames:()[Ljava/lang/String;]
PoolingDriver.isAccessToUnderlyingConnectionAllowed ( ) [static] : boolean
[mangled: org/apache/commons/dbcp/PoolingDriver.isAccessToUnderlyingConnectionAllowed:()Z]
PoolingDriver.setAccessToUnderlyingConnectionAllowed ( boolean allow ) [static] : void
[mangled: org/apache/commons/dbcp/PoolingDriver.setAccessToUnderlyingConnectionAllowed:(Z)V]
to the top
Removed Methods (2)
commons-dbcp-1.1.jar, SQLNestedException.class
package org.apache.commons.dbcp
SQLNestedException.getLocalizedMessage ( ) : String
[mangled: org/apache/commons/dbcp/SQLNestedException.getLocalizedMessage:()Ljava/lang/String;]
SQLNestedException.printStackTrace ( ) : void
[mangled: org/apache/commons/dbcp/SQLNestedException.printStackTrace:()V]
to the top
Problems with Data Types, High Severity (6)
commons-dbcp-1.1.jar
package org.apache.commons.dbcp
[+] BasicDataSource (1)
| Change | Effect |
---|
1 | Type of field defaultReadOnly has been changed from boolean to java.lang.Boolean. | Recompilation of a client program may be terminated with the message: incompatible types, found: boolean, required: java.lang.Boolean. |
[+] affected methods (62)
BasicDataSource ( )This constructor is from 'BasicDataSource' class.
addConnectionProperty ( String, String )This method is from 'BasicDataSource' class.
close ( )This method is from 'BasicDataSource' class.
createDataSource ( )This method is from 'BasicDataSource' class.
getConnection ( )This method is from 'BasicDataSource' class.
getConnection ( String, String )This method is from 'BasicDataSource' class.
getDefaultAutoCommit ( )This method is from 'BasicDataSource' class.
getDefaultCatalog ( )This method is from 'BasicDataSource' class.
getDefaultReadOnly ( )This method is from 'BasicDataSource' class.
getDefaultTransactionIsolation ( )This method is from 'BasicDataSource' class.
getDriverClassName ( )This method is from 'BasicDataSource' class.
getLogAbandoned ( )This method is from 'BasicDataSource' class.
...
[+] DelegatingCallableStatement (1)
| Change | Effect |
---|
1 | Field _conn of type DelegatingConnection has been removed from this class. | Recompilation of a client program may be terminated with the message: cannot find variable _conn in DelegatingCallableStatement. |
[+] affected methods (81)
DelegatingCallableStatement ( DelegatingConnection, CallableStatement )This constructor is from 'DelegatingCallableStatement' class.
equals ( Object )This method is from 'DelegatingCallableStatement' class.
getArray ( int )This method is from 'DelegatingCallableStatement' class.
getArray ( String )This method is from 'DelegatingCallableStatement' class.
getBigDecimal ( int )This method is from 'DelegatingCallableStatement' class.
getBigDecimal ( int, int )This method is from 'DelegatingCallableStatement' class.
getBigDecimal ( String )This method is from 'DelegatingCallableStatement' class.
getBlob ( int )This method is from 'DelegatingCallableStatement' class.
getBlob ( String )This method is from 'DelegatingCallableStatement' class.
getBoolean ( int )This method is from 'DelegatingCallableStatement' class.
getBoolean ( String )This method is from 'DelegatingCallableStatement' class.
getByte ( int )This method is from 'DelegatingCallableStatement' class.
...
[+] DelegatingPreparedStatement (2)
| Change | Effect |
---|
1 | Field _closed of type boolean has been removed from this class. | Recompilation of a client program may be terminated with the message: cannot find variable _closed in DelegatingPreparedStatement. |
2 | Field _conn of type DelegatingConnection has been removed from this class. | Recompilation of a client program may be terminated with the message: cannot find variable _conn in DelegatingPreparedStatement. |
[+] affected methods (40)
DelegatingPreparedStatement ( DelegatingConnection, PreparedStatement )This constructor is from 'DelegatingPreparedStatement' class.
addBatch ( )This method is from 'DelegatingPreparedStatement' class.
clearParameters ( )This method is from 'DelegatingPreparedStatement' class.
equals ( Object )This method is from 'DelegatingPreparedStatement' class.
execute ( )This method is from 'DelegatingPreparedStatement' class.
executeQuery ( )This method is from 'DelegatingPreparedStatement' class.
executeUpdate ( )This method is from 'DelegatingPreparedStatement' class.
getMetaData ( )This method is from 'DelegatingPreparedStatement' class.
getParameterMetaData ( )This method is from 'DelegatingPreparedStatement' class.
setArray ( int, Array )This method is from 'DelegatingPreparedStatement' class.
setAsciiStream ( int, InputStream, int )This method is from 'DelegatingPreparedStatement' class.
setBigDecimal ( int, BigDecimal )This method is from 'DelegatingPreparedStatement' class.
...
[+] PoolableConnectionFactory (1)
| Change | Effect |
---|
1 | Type of field _defaultReadOnly has been changed from boolean to java.lang.Boolean. | Recompilation of a client program may be terminated with the message: incompatible types, found: boolean, required: java.lang.Boolean. |
[+] affected methods (20)
PoolableConnectionFactory ( ConnectionFactory, ObjectPool, KeyedObjectPoolFactory, String, boolean, boolean )This constructor is from 'PoolableConnectionFactory' class.
PoolableConnectionFactory ( ConnectionFactory, ObjectPool, KeyedObjectPoolFactory, String, boolean, boolean, int )This constructor is from 'PoolableConnectionFactory' class.
PoolableConnectionFactory ( ConnectionFactory, ObjectPool, KeyedObjectPoolFactory, String, boolean, boolean, int, String, AbandonedConfig )This constructor is from 'PoolableConnectionFactory' class.
PoolableConnectionFactory ( ConnectionFactory, ObjectPool, KeyedObjectPoolFactory, String, boolean, boolean, int, AbandonedConfig )This constructor is from 'PoolableConnectionFactory' class.
PoolableConnectionFactory ( ConnectionFactory, ObjectPool, KeyedObjectPoolFactory, String, boolean, boolean, AbandonedConfig )This constructor is from 'PoolableConnectionFactory' class.
activateObject ( Object )This method is from 'PoolableConnectionFactory' class.
destroyObject ( Object )This method is from 'PoolableConnectionFactory' class.
getPool ( )This method is from 'PoolableConnectionFactory' class.
makeObject ( )This method is from 'PoolableConnectionFactory' class.
passivateObject ( Object )This method is from 'PoolableConnectionFactory' class.
setConnectionFactory ( ConnectionFactory )This method is from 'PoolableConnectionFactory' class.
setDefaultAutoCommit ( boolean )This method is from 'PoolableConnectionFactory' class.
...
[+] PoolablePreparedStatement (1)
| Change | Effect |
---|
1 | Field _conn of type java.sql.Connection has been removed from this class. | Recompilation of a client program may be terminated with the message: cannot find variable _conn in PoolablePreparedStatement. |
[+] affected methods (2)
PoolablePreparedStatement ( PreparedStatement, Object, KeyedObjectPool, Connection )This constructor is from 'PoolablePreparedStatement' class.
close ( )This method is from 'PoolablePreparedStatement' class.
to the top
Problems with Data Types, Medium Severity (2)
commons-dbcp-1.1.jar
package org.apache.commons.dbcp
[+] DelegatingCallableStatement (1)
| Change | Effect |
---|
1 | Superclass has been changed from AbandonedTrace to DelegatingPreparedStatement. | 1) Recompilation of a client program may be terminated with the message: cannot find variable (or method) in DelegatingCallableStatement. 2) A static field from a super-interface of a client class may hide a field (with the same name) inherited from new super-class. Recompilation of a client class may be terminated with the message: reference to variable is ambiguous. |
[+] affected methods (81)
DelegatingCallableStatement ( DelegatingConnection, CallableStatement )This constructor is from 'DelegatingCallableStatement' class.
equals ( Object )This method is from 'DelegatingCallableStatement' class.
getArray ( int )This method is from 'DelegatingCallableStatement' class.
getArray ( String )This method is from 'DelegatingCallableStatement' class.
getBigDecimal ( int )This method is from 'DelegatingCallableStatement' class.
getBigDecimal ( int, int )This method is from 'DelegatingCallableStatement' class.
getBigDecimal ( String )This method is from 'DelegatingCallableStatement' class.
getBlob ( int )This method is from 'DelegatingCallableStatement' class.
getBlob ( String )This method is from 'DelegatingCallableStatement' class.
getBoolean ( int )This method is from 'DelegatingCallableStatement' class.
getBoolean ( String )This method is from 'DelegatingCallableStatement' class.
getByte ( int )This method is from 'DelegatingCallableStatement' class.
...
[+] DelegatingPreparedStatement (1)
| Change | Effect |
---|
1 | Superclass has been changed from AbandonedTrace to DelegatingStatement. | 1) Recompilation of a client program may be terminated with the message: cannot find variable (or method) in DelegatingPreparedStatement. 2) A static field from a super-interface of a client class may hide a field (with the same name) inherited from new super-class. Recompilation of a client class may be terminated with the message: reference to variable is ambiguous. |
[+] affected methods (40)
DelegatingPreparedStatement ( DelegatingConnection, PreparedStatement )This constructor is from 'DelegatingPreparedStatement' class.
addBatch ( )This method is from 'DelegatingPreparedStatement' class.
clearParameters ( )This method is from 'DelegatingPreparedStatement' class.
equals ( Object )This method is from 'DelegatingPreparedStatement' class.
execute ( )This method is from 'DelegatingPreparedStatement' class.
executeQuery ( )This method is from 'DelegatingPreparedStatement' class.
executeUpdate ( )This method is from 'DelegatingPreparedStatement' class.
getMetaData ( )This method is from 'DelegatingPreparedStatement' class.
getParameterMetaData ( )This method is from 'DelegatingPreparedStatement' class.
setArray ( int, Array )This method is from 'DelegatingPreparedStatement' class.
setAsciiStream ( int, InputStream, int )This method is from 'DelegatingPreparedStatement' class.
setBigDecimal ( int, BigDecimal )This method is from 'DelegatingPreparedStatement' class.
...
to the top
Problems with Methods, Medium Severity (2)
commons-dbcp-1.1.jar, DelegatingStatement
package org.apache.commons.dbcp
[+] DelegatingStatement.activate ( ) : void (1)
[mangled: org/apache/commons/dbcp/DelegatingStatement.activate:()V]
| Change | Effect |
---|
1 | Added java.sql.SQLException exception thrown.
| Recompilation of a client program may be terminated with the message: unreported exception java.sql.SQLException must be caught or declared to be thrown. |
commons-dbcp-1.1.jar, PoolingConnection
package org.apache.commons.dbcp
[+] PoolingConnection.activateObject ( Object key, Object obj ) : void (1)
[mangled: org/apache/commons/dbcp/PoolingConnection.activateObject:(Ljava/lang/Object;Ljava/lang/Object;)V]
| Change | Effect |
---|
1 | Added java.lang.Exception exception thrown.
| Recompilation of a client program may be terminated with the message: unreported exception java.lang.Exception must be caught or declared to be thrown. |
to the top
Other Changes in Data Types (1)
commons-dbcp-1.1.jar
package org.apache.commons.dbcp
[+] BasicDataSource (1)
| Change | Effect |
---|
1 | Field initialSize has been added to this class. | No effect. NOTE: A static field from a super-interface of a client class may hide an added field (with the same name) inherited from the super-class of a client class. Recompilation of a client class may be terminated with the message: reference to initialSize is ambiguous. |
[+] affected methods (62)
BasicDataSource ( )This constructor is from 'BasicDataSource' class.
addConnectionProperty ( String, String )This method is from 'BasicDataSource' class.
close ( )This method is from 'BasicDataSource' class.
createDataSource ( )This method is from 'BasicDataSource' class.
getConnection ( )This method is from 'BasicDataSource' class.
getConnection ( String, String )This method is from 'BasicDataSource' class.
getDefaultAutoCommit ( )This method is from 'BasicDataSource' class.
getDefaultCatalog ( )This method is from 'BasicDataSource' class.
getDefaultReadOnly ( )This method is from 'BasicDataSource' class.
getDefaultTransactionIsolation ( )This method is from 'BasicDataSource' class.
getDriverClassName ( )This method is from 'BasicDataSource' class.
getLogAbandoned ( )This method is from 'BasicDataSource' class.
...
to the top
Java ARchives (1)
commons-dbcp-1.1.jar
to the top