Buggy code:
public void updateObject ( int column , Object x ) throws SqlException { } public void updateNull ( String columnName ) throws SqlException { } public void updateBoolean ( String columnName , boolean x ) throws SqlException { } public void updateByte ( String columnName , byte x ) throws SqlException { } public void updateShort ( String columnName , short x ) throws SqlException { } public void updateInt ( String columnName , int x ) throws SqlException { } public void updateLong ( String columnName , long x ) throws SqlException { } public void updateFloat ( String columnName , float x ) throws SqlException { } public void updateDouble ( String columnName , double x ) throws SqlException { } public void updateBigDecimal ( String columnName , BigDecimal x ) throws SqlException { } public void updateDate ( String columnName , Date x ) throws SqlException { } public void updateTime ( String columnName , Time x ) throws SqlException { } public void updateTimestamp ( String columnName , Timestamp x ) throws SqlException { } public void updateString ( String columnName , String x ) throws SqlException { } public void updateBytes ( String columnName , byte [ ] x ) throws SqlException { } public void updateBinaryStream ( String columnName , InputStream x , int length ) throws SqlException { } public void updateAsciiStream ( String columnName , InputStream x , int length ) throws SqlException { } public void updateCharacterStream ( String columnName , Reader x , int length ) throws SqlException { } public void updateObject ( String columnName , Object x , int scale ) throws SqlException { } public void updateObject ( String columnName , Object x ) throws SqlException { } public void insertRow ( ) throws SqlException { } public void updateRow ( ) throws SQLException { } private boolean updateRowX ( ) throws SQLException { } public void deleteRow ( ) throws SQLException { } private void deleteRowX ( ) throws SQLException { } public void refreshRow ( ) throws SqlException { } private void refreshRowX ( ) throws SqlException { } public void cancelRowUpdates ( ) throws SqlException { } public void moveToInsertRow ( ) throws SqlException { } public void moveToCurrentRow ( ) throws SqlException { } public java . sql . Statement getStatement ( ) { } public URL getURL ( int columnIndex ) throws SqlException { } public URL getURL ( String columnName ) throws SqlException { } public void updateRef ( int columnIndex , Ref x ) throws SqlException { } public void updateRef ( String columnName , Ref x ) throws SqlException { } public void updateBlob ( int columnIndex , Blob x ) throws SqlException { } public void updateBlob ( String columnName , Blob x ) throws SqlException { } public void updateClob ( int columnIndex , Clob x ) throws SqlException { } public void updateClob ( String columnName , Clob x ) throws SqlException { } public void updateArray ( int columnIndex , Array x ) throws SqlException { } public void updateArray ( String columnName , Array x ) throws SqlException { } public boolean repositionScrollableResultSetBeforeJDBC1PositionedUpdateDelete ( ) throws SqlException { } public void flowPositioningFetch ( int scrollOrientation , int rowToFetch ) throws DisconnectException { } protected void positionToCurrentRowAndUpdate ( ) throws SqlException { } protected void update ( ) throws SqlException { } protected void positionToCurrentRowAndDelete ( ) throws SqlException { } protected void delete ( ) throws SqlException { } public void setRowsetAfterLastEvent ( ) throws SqlException { } public void setRowsetBeforeFirstEvent ( ) throws SqlException { } public void setRowsetNoRowsEvent ( ) { } private boolean isServersCursorPositionBeforeFirst ( ) throws SqlException { } private boolean isServerCursorPositionAfterLast ( ) throws SqlException { } public void setValidCursorPosition ( boolean isValidCursorPosition ) { } protected void moveToAfterLast ( ) throws DisconnectException { } protected void moveToBeforeFirst ( ) throws DisconnectException { } public void flowFetch ( ) throws DisconnectException , SqlException { } public void writeUpdateRow ( boolean chainedWritesFollowingSetLob ) throws SqlException { } public void writeDeleteRow ( ) throws SqlException { } public void readUpdateRow ( ) throws DisconnectException , SqlException { } public void readDeleteRow ( ) throws DisconnectException , SqlException { } boolean listenToUnitOfWork_ = false ; public void listenToUnitOfWork ( ) { if ( ! ( listenToUnitOfWork_ ) ) { listenToUnitOfWork_ = true ; <START_BUG> connection_ . CommitAndRollbackListeners_ . add ( this ) ; <END_BUG> } } public void completeLocalCommit ( Iterator listenerIterator ) { } public void completeLocalRollback ( Iterator listenerIterator ) { } private void nullOutReferenceInStatement ( ) { } void markClosed ( ) { } void markClosed ( boolean removeListener ) { } void markClosedOnServer ( ) { } void markAutoCommitted ( ) { } public void earlyCloseComplete ( Sqlca sqlca ) { } public int completeSqlca ( Sqlca sqlca ) { } public void setCloseOnlyStateForSingletonCursors ( ) { } public void setAutoCommitStateForSingletonCursors ( ) { } public void setRowCountEvent ( long rowCount ) throws DisconnectException { } public void accumulateWarning ( SqlWarning e ) { } protected boolean rowCountIsUnknown ( ) { } protected boolean rowCountIsKnown ( ) { } private void updateColumn ( int column , Object value ) { } private String buildUpdateString ( ) throws SqlException { } private String buildDeleteString ( ) throws SqlException { } private String getTableName ( ) throws SqlException { } private String getServerCursorName ( ) throws SqlException { } private void getPreparedStatementForUpdate ( ) throws SQLException { } private void getPreparedStatementForDelete ( ) throws SQLException { } private final void resetUpdatedColumns ( ) { } private final long getRowUncast ( ) { } private final void checkGetterPreconditions ( int column ) throws SqlException { } private final void checkUpdatePreconditions ( int column ) throws SqlException { } final void checkForValidColumnIndex ( int column ) throws SqlException { } protected final void checkForClosedResultSet ( ) throws SqlException { } private final void checkForValidCursorPosition ( ) throws SqlException { }

Fix:
connection_ . CommitAndRollbackListeners_ . put ( this , null ) ;