Buggy code:
public class VAJImport extends Task { protected Vector filesets = new Vector ( ) ; protected boolean importSources = true ; protected boolean importResources = true ; protected boolean importClasses = false ; protected String importProject = null ; protected Project vajproject = null ; public void setVajproject ( String projectName ) { } public void addFileset ( FileSet set ) { } public void setImportClasses ( boolean importClasses ) { } public void setImportResources ( boolean importResources ) { } public void setImportSources ( boolean importSources ) { } public void execute ( ) throws BuildException { } protected Project getVAJProject ( ) { } protected void importFileset ( FileSet fileset ) { DirectoryScanner ds = fileset . getDirectoryScanner ( this . project ) ; if ( ( ds . getIncludedFiles ( ) . length ) == 0 ) { return ; } Vector classes = new Vector ( ) ; Vector sources = new Vector ( ) ; Vector resources = new Vector ( ) ; String [ ] classesArr = null ; String [ ] sourcesArr = null ; String [ ] resourcesArr = null ; StringBuffer msg = new StringBuffer ( ) ; msg . append ( "Importing<seq2seq4repair_space>" ) ; String connector = "" ; ImportCodeSpec importSpec = new ImportCodeSpec ( ) ; importSpec . setDefaultProject ( vajproject ) ; scan ( fileset . getDir ( this . project ) , ds . getIncludedFiles ( ) , classes , sources , resources ) ; if ( importClasses ) { classesArr = new String [ classes . size ( ) ] ; classes . copyInto ( classesArr ) ; importSpec . setClassFiles ( classesArr ) ; if ( ( classesArr . length ) > 0 ) { logFiles ( classes , "class" ) ; msg . append ( classesArr . length ) ; msg . append ( "<seq2seq4repair_space>class<seq2seq4repair_space>" ) ; msg . append ( ( ( classesArr . length ) > 1 ? "files" : "file" ) ) ; connector = ",<seq2seq4repair_space>" ; } } if ( importSources ) { sourcesArr = new String [ sources . size ( ) ] ; sources . copyInto ( sourcesArr ) ; importSpec . setJavaFiles ( sourcesArr ) ; if ( ( sourcesArr . length ) > 0 ) { logFiles ( sources , "source" ) ; msg . append ( connector ) ; msg . append ( sourcesArr . length ) ; msg . append ( "<seq2seq4repair_space>source<seq2seq4repair_space>" ) ; msg . append ( ( ( sourcesArr . length ) > 1 ? "files" : "file" ) ) ; connector = ",<seq2seq4repair_space>" ; } } if ( importResources ) { String resourcePath = fileset . getDir ( this . project ) . getAbsolutePath ( ) ; resourcesArr = new String [ resources . size ( ) ] ; resources . copyInto ( resourcesArr ) ; importSpec . setResourcePath ( resourcePath ) ; importSpec . setResourceFiles ( resourcesArr ) ; if ( ( resourcesArr . length ) > 0 ) { logFiles ( resources , "resource" ) ; log ( ( ( "<seq2seq4repair_space>(relative<seq2seq4repair_space>to<seq2seq4repair_space>resource<seq2seq4repair_space>path<seq2seq4repair_space>'" + resourcePath ) + "')" ) , MSG_VERBOSE ) ; msg . append ( connector ) ; msg . append ( resourcesArr . length ) ; msg . append ( "<seq2seq4repair_space>resource<seq2seq4repair_space>" ) ; msg . append ( ( ( resourcesArr . length ) > 1 ? "files" : "file" ) ) ; } } msg . append ( "<seq2seq4repair_space>into<seq2seq4repair_space>the<seq2seq4repair_space>" ) ; msg . append ( importProject ) ; msg . append ( "<seq2seq4repair_space>project." ) ; log ( msg . toString ( ) ) ; try { Type [ ] importedTypes = VAJUtil . getWorkspace ( ) . importData ( importSpec ) ; if ( importedTypes == null ) { throw new BuildException ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>import<seq2seq4repair_space>into<seq2seq4repair_space>Workspace!" ) ; } } catch ( IvjException ivje ) { <START_BUG> VAJUtil . createBuildException ( "Error<seq2seq4repair_space>while<seq2seq4repair_space>importing<seq2seq4repair_space>into<seq2seq4repair_space>Workspace:<seq2seq4repair_space>" , ivje ) ; <END_BUG> } } protected void scan ( File dir , String [ ] files , Vector classes , Vector sources , Vector resources ) { } protected void logFiles ( Vector fileNames , String fileType ) { } }

Fix:
throw VAJUtil . createBuildException ( "Error<seq2seq4repair_space>while<seq2seq4repair_space>importing<seq2seq4repair_space>into<seq2seq4repair_space>Workspace:<seq2seq4repair_space>" , ivje ) ;