Buggy code:
public void setBigDecimal ( int parameterIndex , BigDecimal x ) throws SQLException { } public void setDate ( int parameterIndex , Date x ) throws SQLException { } public void setDate ( int parameterIndex , Date x , Calendar calendar ) throws SQLException { } public void setTime ( int parameterIndex , Time x ) throws SQLException { } public void setTime ( int parameterIndex , Time x , Calendar calendar ) throws SQLException { } public void setTimestamp ( int parameterIndex , Timestamp x ) throws SQLException { } public void setTimestamp ( int parameterIndex , Timestamp x , Calendar calendar ) throws SQLException { } public void setString ( int parameterIndex , String x ) throws SQLException { } void setStringX ( int parameterIndex , String x ) throws SqlException { } public void setBytes ( int parameterIndex , byte [ ] x ) throws SQLException { } public void setBytesX ( int parameterIndex , byte [ ] x ) throws SqlException { } public void setBinaryStream ( int parameterIndex , InputStream x , int length ) throws SQLException { } protected void setBinaryStreamX ( int parameterIndex , InputStream x , int length ) throws SqlException { } public void setAsciiStream ( int parameterIndex , InputStream x , int length ) throws SQLException { } public void setUnicodeStream ( int parameterIndex , InputStream x , int length ) throws SQLException { } public void setCharacterStream ( int parameterIndex , Reader x , int length ) throws SQLException { } public void setBlob ( int parameterIndex , Blob x ) throws SQLException { } public void setBlobX ( int parameterIndex , Blob x ) throws SqlException { } public void setClob ( int parameterIndex , Clob x ) throws SQLException { } void setClobX ( int parameterIndex , Clob x ) throws SqlException { } public void setArray ( int parameterIndex , Array x ) throws SQLException { } public void setRef ( int parameterIndex , Ref x ) throws SQLException { } public void setObject ( int parameterIndex , Object x ) throws SQLException { } public void setObject ( int parameterIndex , Object x , int targetJdbcType ) throws SQLException { } public void setObject ( int parameterIndex , Object x , int targetJdbcType , int scale ) throws SQLException { } private void setObjectX ( int parameterIndex , Object x , int targetJdbcType , int scale ) throws SqlException { } public void clearParameters ( ) throws SQLException { } public boolean execute ( ) throws SQLException { } private boolean executeX ( ) throws SqlException { } public void addBatch ( ) throws SQLException { } public int [ ] executeBatch ( ) throws SQLException , BatchUpdateException { } public ResultSetMetaData getMetaData ( ) throws SQLException { } private ColumnMetaData getMetaDataX ( ) throws SqlException { } public boolean execute ( String sql , int autoGeneratedKeys ) throws SQLException { } public boolean execute ( String sql , String [ ] columnNames ) throws SQLException { } public boolean execute ( String sql , int [ ] columnIndexes ) throws SQLException { } public int executeUpdate ( String sql , int autoGeneratedKeys ) throws SQLException { } public int executeUpdate ( String sql , String [ ] columnNames ) throws SQLException { } public int executeUpdate ( String sql , int [ ] columnIndexes ) throws SQLException { } public void setURL ( int parameterIndex , URL x ) throws SQLException { } public ParameterMetaData getParameterMetaData ( ) throws SQLException { } private ParameterMetaData getParameterMetaDataX ( ) throws SqlException { } public void writeExecute ( Section section , ColumnMetaData parameterMetaData , Object [ ] inputs , int numInputColumns , boolean outputExpected , boolean chainedWritesFollowingSetLob ) throws SqlException { } public void readExecute ( ) throws SqlException { } public void writeOpenQuery ( Section section , int fetchSize , int resultSetType , int numInputColumns , ColumnMetaData parameterMetaData , Object [ ] inputs ) throws SqlException { } public void writeDescribeInput ( Section section ) throws SqlException { } public void readDescribeInput ( ) throws SqlException { } public void completeDescribeInput ( ColumnMetaData parameterMetaData , Sqlca sqlca ) { } public void writeDescribeOutput ( Section section ) throws SqlException { } public void readDescribeOutput ( ) throws SqlException { } public void completeDescribeOutput ( ColumnMetaData resultSetMetaData , Sqlca sqlca ) { } void writePrepareDescribeInputOutput ( ) throws SqlException { } void readPrepareDescribeInputOutput ( ) throws SqlException { } void writePrepareDescribeInput ( ) throws SqlException { } void readPrepareDescribeInput ( ) throws SqlException { } void completePrepareDescribe ( ) { } private Object [ ] expandObjectArray ( Object [ ] array , int newLength ) { } private boolean [ ] expandBooleanArray ( boolean [ ] array , int newLength ) { } void flowPrepareForSelectFromInsert ( ) throws SqlException { } void writePrepareDescribeInputOutput ( String sql , Section section ) throws SqlException { } void flowPrepareDescribeInputOutput ( ) throws SqlException { } void flowExecute ( int executeType ) throws SqlException { } public int [ ] executeBatchX ( boolean supportsQueryBatchRequest ) throws SQLException , BatchUpdateException , SqlException { } private int [ ] executeBatchRequestX ( boolean supportsQueryBatchRequest ) throws BatchUpdateException , SqlException { } boolean listenToUnitOfWork_ = false ; public void listenToUnitOfWork ( ) { if ( ! ( listenToUnitOfWork_ ) ) { listenToUnitOfWork_ = true ; <START_BUG> CommitAndRollbackListeners_ . add ( this ) ; <END_BUG> } } public void completeLocalCommit ( Iterator listenerIterator ) { } public void completeLocalRollback ( Iterator listenerIterator ) { } private int checkSetterPreconditions ( int parameterIndex ) throws SqlException { } void checkForValidParameterIndex ( int parameterIndex ) throws SqlException { } private void checkThatAllParametersAreSet ( ) throws SqlException { } private int checkForEscapedCallWithResult ( int parameterIndex ) throws SqlException { } void checkForValidScale ( int scale ) throws SqlException { } void checkScaleForINOUTDecimal ( int parameterIndex , int registerOutScale ) throws SqlException { } protected void markClosed ( boolean removeListener ) { } }

Fix:
CommitAndRollbackListeners_ . put ( this , null ) ;