Buggy code:
public class AjcTaskTest extends TestCase { private static final Class NO_EXCEPTION = null ; private static final String NOFILE = "NOFILE" ; private static final File tempDir ; private static final String aspectjtoolsJar ; private static final String testdataDir ; private static final StringBuffer MESSAGES = new StringBuffer ( ) ; private static FileFilter PICK_CLASS_FILES ; public static void main ( String [ ] args ) { } public static void collectMessage ( String s ) { } private static void deleteTempDir ( ) { } private static final File getTempDir ( ) { } public AjcTaskTest ( String name ) { } public void tearDown ( ) { } private void checkRun ( AjcTask task , String exceptionString ) { } private void checkContains ( String [ ] cmd , String option , boolean contains ) { } protected AjcTask getTask ( String input ) { } protected AjcTask getTask ( String input , File destDir ) { } public static class InfoHolder extends MessageHandler { public InfoHolder ( ) { } public boolean handleMessage ( IMessage message ) { } } public static class Holder extends MessageHandler { public Holder ( ) { } public boolean handleMessage ( IMessage message ) { } } public void testNullDestDir ( ) { } public void testOutputRequirement ( ) { } public void testSourceRootCopyFilter ( ) { } public void testInpathDirCopyFilter ( ) { } public void testInpathDirCopyFilterWithJar ( ) throws IOException { } public void testInpathDirCopyFilterError ( ) { } public void testLoggingMode ( ) { } public void testCommandEditor ( ) { } public void testLimitTo ( ) { } public void testFindAspectjtoolsJar ( ) { } public void testMessageHolderClassName ( ) { } public void skip_testMessageHolderClassWithDoneSignal ( ) { } public void testDefaultListForkedNoTools ( ) { } public void testDefaultListForkedIncremental ( ) { } public void testCompileErrorFailOnErrorDefault ( ) { } public void testCompileErrorListDefaultHolder ( ) { } public void testDefaultList ( ) { } public void testCompileErrorList ( ) { } public void testShowWeaveInfo ( ) { } public void testCompileWarningList ( ) { } public void testNoSuchFileList ( ) { } public void testVersions ( ) { } public void testClasspath ( ) { } public void testNoFile ( ) { } public void testCompileErrorFile ( ) { } public void testCompileWarningFile ( ) { } public void testNoSuchFile ( ) { } public void testDefaultFileComplete ( ) { AjcTask task = getTask ( "default.lst" ) ; task . setDebugLevel ( "none" ) ; task . setDeprecation ( true ) ; task . setFailonerror ( false ) ; task . setNoExit ( true ) ; task . setNoImportError ( true ) ; task . setNowarn ( true ) ; <START_BUG> task . setXNoweave ( true ) ; <END_BUG> task . setPreserveAllLocals ( true ) ; task . setProceedOnError ( true ) ; task . setReferenceInfo ( true ) ; task . setSource ( "1.3" ) ; task . setTarget ( "1.1" ) ; task . setTime ( true ) ; task . setVerbose ( true ) ; task . setXlint ( "info" ) ; runTest ( task , AjcTaskTest . NO_EXCEPTION , AjcTaskTest . MessageHolderChecker . INFOS ) ; } public void testXOptions ( ) { } public void testOutxml ( ) { } public void testOutxmlFile ( ) { } protected void runTest ( AjcTask task , Class exceptionType , AjcTaskTest . MessageHolderChecker checker , String messageHolderClass ) { } protected void runTest ( AjcTask task , Class exceptionType , AjcTaskTest . MessageHolderChecker checker ) { } protected void runTest ( AjcTask task , Class exceptionType , AjcTaskTest . MessageHolderChecker checker , MessageHandler holder ) { } protected String render ( Throwable thrown ) { } static class MessageHolderChecker { static int IGNORE = Integer . MIN_VALUE ; static AjcTaskTest . MessageHolderChecker NONE = new AjcTaskTest . MessageHolderChecker ( 0 , 0 , 0 , 0 , 0 ) ; static AjcTaskTest . MessageHolderChecker INFOS = new AjcTaskTest . MessageHolderChecker ( 0 , 0 , 0 , 0 , AjcTaskTest . MessageHolderChecker . IGNORE ) ; static AjcTaskTest . MessageHolderChecker ONE_ERROR = new AjcTaskTest . MessageHolderChecker ( 0 , 0 , 1 , 0 , AjcTaskTest . MessageHolderChecker . IGNORE ) ; static AjcTaskTest . MessageHolderChecker ONE_ERROR_ONE_ABORT = new AjcTaskTest . MessageHolderChecker ( 1 , 0 , 1 , 0 , AjcTaskTest . MessageHolderChecker . IGNORE ) ; static AjcTaskTest . MessageHolderChecker ONE_WARNING = new AjcTaskTest . MessageHolderChecker ( 0 , 0 , 0 , 1 , AjcTaskTest . MessageHolderChecker . IGNORE ) ; int aborts ; int fails ; int errors ; int warnings ; int infos ; int weaveinfos ; public MessageHolderChecker ( int aborts , int fails , int errors , int warnings , int infos ) { } public boolean expectFail ( ) { } public void check ( IMessageHolder holder , String label ) { } private void check ( IMessageHolder holder , int num , IMessage . Kind kind ) { } } }

Fix:
task . setXTerminateAfterCompilation ( true ) ;