Buggy code:
public class Compiler implements ITypeRequestor , ProblemSeverities { public Parser parser ; public ICompilerRequestor requestor ; public CompilerOptions options ; public ProblemReporter problemReporter ; protected PrintWriter out ; public CompilationUnitDeclaration [ ] unitsToProcess ; public int totalUnits ; public LookupEnvironment lookupEnvironment ; public static boolean DEBUG = false ; public int parseThreshold = - 1 ; public AbstractAnnotationProcessorManager annotationProcessorManager ; public BinaryTypeBinding [ ] binaryTypeBindings ; public static IDebugRequestor DebugRequestor = null ; public Compiler ( INameEnvironment environment , IErrorHandlingPolicy policy , Map settings , final ICompilerRequestor requestor , IProblemFactory problemFactory ) { } public Compiler ( INameEnvironment environment , IErrorHandlingPolicy policy , Map settings , final ICompilerRequestor requestor , IProblemFactory problemFactory , boolean parseLiteralExpressionsAsConstants ) { } public Compiler ( INameEnvironment environment , IErrorHandlingPolicy policy , CompilerOptions options , final ICompilerRequestor requestor , IProblemFactory problemFactory ) { } public Compiler ( INameEnvironment environment , IErrorHandlingPolicy policy , CompilerOptions options , final ICompilerRequestor requestor , IProblemFactory problemFactory , PrintWriter out ) { } public void accept ( IBinaryType binaryType , PackageBinding packageBinding , AccessRestriction accessRestriction ) { } public void accept ( ICompilationUnit sourceUnit , AccessRestriction accessRestriction ) { } public void accept ( ISourceType [ ] sourceTypes , PackageBinding packageBinding , AccessRestriction accessRestriction ) { } protected void addCompilationUnit ( ICompilationUnit sourceUnit , CompilationUnitDeclaration parsedUnit ) { } protected void beginToCompile ( ICompilationUnit [ ] sourceUnits ) { } public void compile ( ICompilationUnit [ ] sourceUnits ) { } public void setBinaryTypes ( IBinaryType [ ] binaryTypes ) { } protected void handleInternalException ( Throwable internalException , CompilationUnitDeclaration unit , CompilationResult result ) { } protected void handleInternalException ( org . eclipse . jdt . internal . compiler . problem . AbortCompilation abortException , CompilationUnitDeclaration unit ) { } public void initializeParser ( ) { } protected void internalBeginToCompile ( ICompilationUnit [ ] sourceUnits , int maxUnits ) { } public void process ( CompilationUnitDeclaration unit , int i ) { } protected void processAnnotations ( ) { int newUnitSize = 0 ; int bottom = 0 ; int top = this . unitsToProcess . length ; BinaryTypeBinding [ ] binaryTypeBindingsTemp = this . binaryTypeBindings ; if ( ( top == 0 ) && ( binaryTypeBindingsTemp == null ) ) return ; this . binaryTypeBindings = null ; do { int length = top - bottom ; CompilationUnitDeclaration [ ] currentUnits = new CompilationUnitDeclaration [ length ] ; int index = 0 ; for ( int i = bottom ; i < top ; i ++ ) { CompilationUnitDeclaration currentUnit = this . unitsToProcess [ i ] ; if ( ( ( currentUnit . bits ) & ( ASTNode . IsImplicitUnit ) ) == 0 ) { currentUnits [ ( index ++ ) ] = currentUnit ; } } if ( index != length ) { System . arraycopy ( currentUnits , 0 , ( currentUnits = new CompilationUnitDeclaration [ index ] ) , 0 , index ) ; } this . annotationProcessorManager . processAnnotations ( currentUnits , binaryTypeBindingsTemp , false ) ; binaryTypeBindingsTemp = null ; ICompilationUnit [ ] newUnits = this . annotationProcessorManager . getNewUnits ( ) ; newUnitSize = newUnits . length ; if ( newUnitSize != 0 ) { internalBeginToCompile ( newUnits , newUnitSize ) ; bottom = top ; top = this . unitsToProcess . length ; this . annotationProcessorManager . reset ( ) ; } } while ( newUnitSize != 0 ) ; <START_BUG> this . annotationProcessorManager . processAnnotations ( unitsToProcess , this . binaryTypeBindings , true ) ; <END_BUG> } public void reset ( ) { } public CompilationUnitDeclaration resolve ( CompilationUnitDeclaration unit , ICompilationUnit sourceUnit , boolean verifyMethods , boolean analyzeCode , boolean generateCode ) { } public CompilationUnitDeclaration resolve ( ICompilationUnit sourceUnit , boolean verifyMethods , boolean analyzeCode , boolean generateCode ) { } }

Fix:
this . annotationProcessorManager . processAnnotations ( null , null , true ) ;