Buggy code:
public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementalAjdeInteractionTestbed { public void testDontLoseAdviceMarkers_pr134471 ( ) { } public void testTheBasics ( ) { } public void testInvalidAspectpath_pr121395 ( ) { } public void testSimpleChanges ( ) { } public void testAddingAnAspect ( ) { } public void testBuildingTwoProjectsInTurns ( ) { } public void testBuildingTwoProjectsMakingSmallChanges ( ) { } public void testPr134371 ( ) { } public void testBuildingTwoProjectsAndVerifyingModel ( ) { } public void testBuildingTwoProjectsAndVerifyingStuff ( ) { } public void testStateManagement1 ( ) { } public void testStateManagement2 ( ) { } public void testStateManagement3 ( ) { } public void testStateManagement4 ( ) { } public void testStateManagement5 ( ) { } public void testBuildingDependantProjects ( ) { } public void testPr85132 ( ) { } public void testPr125405 ( ) { } public void testPr128618 ( ) { } public void testPr92837 ( ) { } public void testPr119570 ( ) { } public void testPr119570_2 ( ) { } public void testPr117209 ( ) { } public void testPr114875 ( ) { } public void testPr117882 ( ) { } public void testPr117882_2 ( ) { } public void testPr115251 ( ) { } public void testPr141956_IncrementallyCompilingAtAj ( ) { } public void testPr121384 ( ) { } public void testPr93310_1 ( ) { } public void testPr93310_2 ( ) { } public void testPr113531 ( ) { } public void testPr119882 ( ) { } public void testPr112736 ( ) { } public void testPr113257 ( ) { } public void testPr123612 ( ) { } public void testPr152257 ( ) { } public void testPr128655 ( ) { } public void testPr128655_2 ( ) { } public void testPr129163 ( ) { } public void testPr129163_2 ( ) { } public void testPr129163_3 ( ) { } public void testPr133117 ( ) { } public void testPr131505 ( ) { } public void testPr136585 ( ) { } public void testPr133532 ( ) { } public void testPr133532_2 ( ) { } public void testPr134541 ( ) { } public void testJDTLikeHandleProviderWithLstFile_pr141730 ( ) { } public void testMovingAdviceDoesntChangeHandles_pr141730 ( ) { } public void testSwappingAdviceAndHandles_pr141730 ( ) { } public void testInitializerCountForJDTLikeHandleProvider_pr141730 ( ) { } public void testPr134471_IncrementalCompilationAndModelUpdates ( ) { } public void testPr134471_MovingAdvice ( ) { } public void testAddingAndRemovingDecwWithStructureModel ( ) { } public void testPr134471_IncrementallyRecompilingTheAffectedClass ( ) { } public void testPr134471_IncrementallyRecompilingAspectContainingDeclare ( ) { } public void testPr134471_IncrementallyRecompilingTheClassAffectedByDeclare ( ) { } public void testDontLoseXlintWarnings_pr141556 ( ) { } public void testLintMessage_pr141564 ( ) { } public void testAdviceDidNotMatch_pr152589 ( ) { } private List getRelatedElements ( IProgramElement programElement , int expected ) { } private IProgramElement getFirstRelatedElement ( IProgramElement programElement ) { } private List getRelatedElements ( IProgramElement advice ) { } private IProgramElement findAdvice ( IProgramElement ipe ) { } private IProgramElement findAdvice ( IProgramElement ipe , int whichOne ) { } private IProgramElement findCode ( IProgramElement ipe ) { } private IProgramElement findCode ( IProgramElement ipe , int linenumber ) { } private void checkCompileWeaveCount ( int expCompile , int expWoven ) { } private void checkWasntFullBuild ( ) { } private void checkWasFullBuild ( ) { } private IProgramElement checkForNode ( String packageName , String typeName , boolean shouldBeFound ) { } private void printModel ( ) { } private void alter ( String projectName , String overlayDirectory ) { } private static void log ( String msg ) { } private void checkXMLAspectCount ( String projectName , String aspectName , int expectedOccurrences ) { int aspectCount = 0 ; <START_BUG> File aopXML = new File ( ( ( ( ( ( ( ( ( ( getWorkingDir ( ) . getAbsolutePath ( ) ) + ( File . separatorChar ) ) + projectName ) + ( File . separatorChar ) ) + "bin" ) + ( File . separatorChar ) ) + "META-INF" ) + ( File . separatorChar ) ) + "aop.xml" ) ) ; <END_BUG> if ( ! ( aopXML . exists ( ) ) ) { fail ( ( ( "Expected<seq2seq4repair_space>file<seq2seq4repair_space>" + ( aopXML . getAbsolutePath ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>exist<seq2seq4repair_space>but<seq2seq4repair_space>it<seq2seq4repair_space>doesn't" ) ) ; } try { BufferedReader reader = new BufferedReader ( new FileReader ( aopXML ) ) ; String line = reader . readLine ( ) ; while ( line != null ) { if ( ( aspectName . equals ( "" ) ) && ( ( line . indexOf ( "aspect<seq2seq4repair_space>name=\"" ) ) != ( - 1 ) ) ) { aspectCount ++ ; } else if ( ( line . indexOf ( ( ( "aspect<seq2seq4repair_space>name=\"" + aspectName ) + "\"" ) ) ) != ( - 1 ) ) { aspectCount ++ ; } line = reader . readLine ( ) ; } reader . close ( ) ; } catch ( IOException ie ) { ie . printStackTrace ( ) ; } if ( aspectCount != expectedOccurrences ) { fail ( ( ( ( ( ( ( ( "Expected<seq2seq4repair_space>aspect<seq2seq4repair_space>" + aspectName ) + "<seq2seq4repair_space>to<seq2seq4repair_space>appear<seq2seq4repair_space>" ) + expectedOccurrences ) + "<seq2seq4repair_space>times" ) + "<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>aop.xml<seq2seq4repair_space>file<seq2seq4repair_space>but<seq2seq4repair_space>found<seq2seq4repair_space>" ) + aspectCount ) + "<seq2seq4repair_space>occurrences" ) ) ; } } private File getProjectRelativePath ( String p , String filename ) { } private File getProjectOutputRelativePath ( String p , String filename ) { } }

Fix:
File aopXML = new File ( ( ( ( ( ( ( ( ( ( getWorkingDir ( ) . getAbsolutePath ( ) ) + ( File . separatorChar ) ) + projectName ) + ( File . separatorChar ) ) + "bin" ) + ( File . separatorChar ) ) + "META-INF" ) + ( File . separatorChar ) ) + "aop-ajc.xml" ) ) ;