Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.1
-
None
Description
The Object.equals( Object ) implementation in PoolingDataSource.PoolGuardConnectionWrapper is broken because it does not attempt to test if the outermost objects are equal. It should be replaced with something like:
public boolean equals(Object obj) {
if ( obj == this ) return true;
if ( obj instanceof PoolGuardConnectionWrapper ) {
return delegate.equals( ((PoolGuardConnectionWrapper) obj).delegate );
return false;
}
The current implementation prevents putting PoolGuardConenctionWrapper objects in Collections and using the standard contains( Object ) or remove( Object ) methods.