Buggy code:
private loader ; public void setAutocommit ( boolean autocommit ) { } public void setClasspath ( Path classpath ) throws TaskException { } public void setClasspathRef ( Reference r ) throws TaskException { } public void setDelimiter ( String delimiter ) { } public void setDelimiterType ( SQLExec . DelimiterType delimiterType ) { } public void setDriver ( String driver ) { } public void setEncoding ( String encoding ) { } public void setOnerror ( SQLExec . OnError action ) { } public void setOutput ( File output ) { } public void setPassword ( String password ) { } public void setPrint ( boolean print ) { } public void setRdbms ( String vendor ) { } public void setShowheaders ( boolean showheaders ) { } public void setSrc ( File srcFile ) { } public void setUrl ( String url ) { } public void setUserid ( String userId ) { } public void setVersion ( String version ) { } public void addFileset ( FileSet set ) { } public void addText ( String sql ) { } public Path createClasspath ( ) throws TaskException { } public SQLExec . Transaction createTransaction ( ) { } public void execute ( ) throws TaskException { sqlCommand = sqlCommand . trim ( ) ; if ( ( ( ( srcFile ) == null ) && ( ( sqlCommand . length ( ) ) == 0 ) ) && ( filesets . isEmpty ( ) ) ) { if ( ( transactions . size ( ) ) == 0 ) { throw new TaskException ( "Source<seq2seq4repair_space>file<seq2seq4repair_space>or<seq2seq4repair_space>fileset,<seq2seq4repair_space>transactions<seq2seq4repair_space>or<seq2seq4repair_space>sql<seq2seq4repair_space>statement<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set!" ) ; } } else { for ( int i = 0 ; i < ( filesets . size ( ) ) ; i ++ ) { FileSet fs = ( ( FileSet ) ( filesets . elementAt ( i ) ) ) ; DirectoryScanner ds = fs . getDirectoryScanner ( project ) ; File srcDir = fs . getDir ( project ) ; String [ ] srcFiles = ds . getIncludedFiles ( ) ; for ( int j = 0 ; j < ( srcFiles . length ) ; j ++ ) { SQLExec . Transaction t = createTransaction ( ) ; t . setSrc ( new File ( srcDir , srcFiles [ j ] ) ) ; } } SQLExec . Transaction t = createTransaction ( ) ; t . setSrc ( srcFile ) ; t . addText ( sqlCommand ) ; } if ( ( driver ) == null ) { throw new TaskException ( "Driver<seq2seq4repair_space>attribute<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set!" ) ; } if ( ( userId ) == null ) { throw new TaskException ( "User<seq2seq4repair_space>Id<seq2seq4repair_space>attribute<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set!" ) ; } if ( ( password ) == null ) { throw new TaskException ( "Password<seq2seq4repair_space>attribute<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set!" ) ; } if ( ( url ) == null ) { throw new TaskException ( "Url<seq2seq4repair_space>attribute<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set!" ) ; } if ( ( ( srcFile ) != null ) && ( ! ( srcFile . exists ( ) ) ) ) { throw new TaskException ( "Source<seq2seq4repair_space>file<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist!" ) ; } Driver driverInstance = null ; try { Class dc ; if ( ( classpath ) != null ) { log ( ( ( ( "Loading<seq2seq4repair_space>" + ( driver ) ) + "<seq2seq4repair_space>using<seq2seq4repair_space>AntClassLoader<seq2seq4repair_space>with<seq2seq4repair_space>classpath<seq2seq4repair_space>" ) + ( classpath ) ) , MSG_VERBOSE ) ; loader = new AntClassLoader ( project , classpath ) ; dc = loader . loadClass ( driver ) ; } else { log ( ( ( "Loading<seq2seq4repair_space>" + ( driver ) ) + "<seq2seq4repair_space>using<seq2seq4repair_space>system<seq2seq4repair_space>loader." ) , MSG_VERBOSE ) ; dc = Class . forName ( driver ) ; } driverInstance = ( ( Driver ) ( dc . newInstance ( ) ) ) ; } catch ( ClassNotFoundException e ) { throw new TaskException ( ( ( "Class<seq2seq4repair_space>Not<seq2seq4repair_space>Found:<seq2seq4repair_space>JDBC<seq2seq4repair_space>driver<seq2seq4repair_space>" + ( driver ) ) + "<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>loaded" ) ) ; } catch ( IllegalAccessException e ) { throw new TaskException ( ( ( "Illegal<seq2seq4repair_space>Access:<seq2seq4repair_space>JDBC<seq2seq4repair_space>driver<seq2seq4repair_space>" + ( driver ) ) + "<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>loaded" ) ) ; } catch ( InstantiationException e ) { throw new TaskException ( ( ( "Instantiation<seq2seq4repair_space>Exception:<seq2seq4repair_space>JDBC<seq2seq4repair_space>driver<seq2seq4repair_space>" + ( driver ) ) + "<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>loaded" ) ) ; } try { log ( ( "connecting<seq2seq4repair_space>to<seq2seq4repair_space>" + ( url ) ) , MSG_VERBOSE ) ; Properties info = new Properties ( ) ; info . put ( "user" , userId ) ; info . put ( "password" , password ) ; conn = driverInstance . connect ( url , info ) ; if ( ( conn ) == null ) { throw new SQLException ( ( "No<seq2seq4repair_space>suitable<seq2seq4repair_space>Driver<seq2seq4repair_space>for<seq2seq4repair_space>" + ( url ) ) ) ; } if ( ! ( isValidRdbms ( conn ) ) ) return ; conn . setAutoCommit ( autocommit ) ; statement = conn . createStatement ( ) ; PrintStream out = System . out ; try { if ( ( output ) != null ) { log ( ( "Opening<seq2seq4repair_space>PrintStream<seq2seq4repair_space>to<seq2seq4repair_space>output<seq2seq4repair_space>file<seq2seq4repair_space>" + ( output ) ) , MSG_VERBOSE ) ; out = new PrintStream ( new BufferedOutputStream ( new FileOutputStream ( output ) ) ) ; } for ( Enumeration e = transactions . elements ( ) ; e . hasMoreElements ( ) ; ) { ( ( SQLExec . Transaction ) ( e . nextElement ( ) ) ) . runTransaction ( out ) ; if ( ! ( autocommit ) ) { log ( "Commiting<seq2seq4repair_space>transaction" , MSG_VERBOSE ) ; conn . commit ( ) ; } } } finally { if ( ( out != null ) && ( out != ( System . out ) ) ) { out . close ( ) ; } } } catch ( IOException e ) { if ( ( ( ! ( autocommit ) ) && ( ( conn ) != null ) ) && ( onError . equals ( "abort" ) ) ) { try { conn . rollback ( ) ; } catch ( SQLException ex ) { } } throw new TaskException ( "Error" , e ) ; } catch ( SQLException e ) { if ( ( ( ! ( autocommit ) ) && ( ( conn ) != null ) ) && ( onError . equals ( "abort" ) ) ) { try { conn . rollback ( ) ; } catch ( SQLException ex ) { } } throw new TaskException ( "Error" , e ) ; } finally { try { if ( ( statement ) != null ) { statement . close ( ) ; } if ( ( conn ) != null ) { conn . close ( ) ; } } catch ( SQLException e ) { } } <START_BUG> log ( ( ( ( ( goodSql ) + "<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( totalSql ) ) + "<seq2seq4repair_space>SQL<seq2seq4repair_space>statements<seq2seq4repair_space>executed<seq2seq4repair_space>successfully" ) ) ; <END_BUG>

Fix:
getLogger ( ) . info ( ( ( ( ( goodSql ) + "<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( totalSql ) ) + "<seq2seq4repair_space>SQL<seq2seq4repair_space>statements<seq2seq4repair_space>executed<seq2seq4repair_space>successfully" ) ) ;