Buggy code:
public static class WorkingCopyDocument extends JavaSearchDocument { public ICompilationUnit workingCopy ; WorkingCopyDocument ( ICompilationUnit workingCopy , SearchParticipant participant ) { } public String toString ( ) { } } public static class WrappedCoreException extends RuntimeException { private static final long serialVersionUID = 8354329870126121212L ; public CoreException coreException ; public WrappedCoreException ( CoreException coreException ) { } } public static SearchDocument [ ] addWorkingCopies ( SearchPattern pattern , SearchDocument [ ] indexMatches , ICompilationUnit [ ] copies , SearchParticipant participant ) { } public static void setFocus ( SearchPattern pattern , IJavaElement focus ) { } private static HashMap workingCopiesThatCanSeeFocus ( ICompilationUnit [ ] copies , SearchPattern pattern , SearchParticipant participant ) { } public static ClassFileReader classFileReader ( IType type ) { } public static void findIndexMatches ( SearchPattern pattern , Index index , IndexQueryRequestor requestor , SearchParticipant participant , IJavaSearchScope scope , IProgressMonitor monitor ) throws IOException { } public static IJavaElement getProjectOrJar ( IJavaElement element ) { } public static IJavaElement projectOrJarFocus ( SearchPattern pattern ) { } public MatchLocator ( SearchPattern pattern , SearchRequestor requestor , IJavaSearchScope scope , IProgressMonitor progressMonitor ) { } public void accept ( IBinaryType binaryType , PackageBinding packageBinding , AccessRestriction accessRestriction ) { } public void accept ( org . eclipse . jdt . internal . compiler . env . ICompilationUnit sourceUnit , AccessRestriction accessRestriction ) { } public void accept ( ISourceType [ ] sourceTypes , PackageBinding packageBinding , AccessRestriction accessRestriction ) { } protected Parser basicParser ( ) { } protected BinaryTypeBinding cacheBinaryType ( IType type , IBinaryType binaryType ) throws JavaModelException { } protected char [ ] [ ] [ ] computeSuperTypeNames ( IType focusType ) { } protected IJavaElement createHandle ( AbstractMethodDeclaration method , IJavaElement parent ) { } IMethod createBinaryMethodHandle ( IType type , char [ ] methodSelector , char [ ] [ ] argumentTypeNames ) { } private IJavaElement createMethodHandle ( IType type , String methodName , String [ ] parameterTypeSignatures ) { } protected IJavaElement createHandle ( FieldDeclaration fieldDeclaration , TypeDeclaration typeDeclaration , IJavaElement parent ) { } protected IJavaElement createHandle ( AbstractVariableDeclaration variableDeclaration , IJavaElement parent ) { } protected IJavaElement createHandle ( Annotation annotation , IAnnotatable parent ) { } private IJavaElement [ ] createHandles ( FieldDeclaration [ ] fields , TypeDeclaration type , IJavaElement parent ) { } protected boolean createHierarchyResolver ( IType focusType , PossibleMatch [ ] possibleMatches ) { } protected IJavaElement createImportHandle ( ImportReference importRef ) { } protected IJavaElement createPackageDeclarationHandle ( CompilationUnitDeclaration unit ) { } protected IType createTypeHandle ( String simpleTypeName ) { } protected boolean encloses ( IJavaElement element ) { } private long findLastTypeArgumentInfo ( TypeReference typeRef ) { } protected IBinaryType getBinaryInfo ( ClassFile classFile , IResource resource ) throws CoreException { } protected IType getFocusType ( ) { } protected void getMethodBodies ( CompilationUnitDeclaration unit , MatchingNodeSet nodeSet ) { } protected TypeBinding getType ( Object typeKey , char [ ] typeName ) { } public MethodBinding getMethodBinding ( MethodPattern methodPattern ) { } protected boolean hasAlreadyDefinedType ( CompilationUnitDeclaration parsedUnit ) { } public void initialize ( JavaProject project , int possibleMatchSize ) throws JavaModelException { if ( ( ( this . nameEnvironment ) != null ) && ( possibleMatchSize != 1 ) ) this . nameEnvironment . cleanup ( ) ; SearchableEnvironment searchableEnvironment = project . newSearchableNameEnvironment ( this . workingCopies ) ; this . nameEnvironment = ( possibleMatchSize == 1 ) ? ( ( INameEnvironment ) ( searchableEnvironment ) ) : ( ( INameEnvironment ) ( new JavaSearchNameEnvironment ( project , this . workingCopies ) ) ) ; Map map = project . getOptions ( true ) ; <START_BUG> map . put ( CompilerOptions . OPTION_TaskTags , "" ) ; <END_BUG> this . options = new CompilerOptions ( map ) ; ProblemReporter problemReporter = new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , this . options , new DefaultProblemFactory ( ) ) ; this . lookupEnvironment = new LookupEnvironment ( this , this . options , problemReporter , this . nameEnvironment ) ; this . parser = MatchLocatorParser . createParser ( problemReporter , this ) ; this . basicParser = null ; this . nameLookup = searchableEnvironment . nameLookup ; this . numberOfMatches = 0 ; this . matchesToProcess = new PossibleMatch [ possibleMatchSize ] ; } protected void locateMatches ( JavaProject javaProject , PossibleMatch [ ] possibleMatches , int start , int length ) throws CoreException { } protected void locateMatches ( JavaProject javaProject , PossibleMatchSet matchSet , int expected ) throws CoreException { } public void locateMatches ( SearchDocument [ ] searchDocuments ) throws CoreException { } protected void locatePackageDeclarations ( SearchParticipant participant , IJavaProject [ ] projects ) throws CoreException { } protected void locatePackageDeclarations ( SearchPattern searchPattern , SearchParticipant participant , IJavaProject [ ] projects ) throws CoreException { } protected IType lookupType ( ReferenceBinding typeBinding ) { } public SearchMatch newDeclarationMatch ( IJavaElement element , Binding binding , int accuracy , int offset , int length ) { } public SearchMatch newDeclarationMatch ( IJavaElement element , Binding binding , int accuracy , int offset , int length , SearchParticipant participant , IResource resource ) { } public FieldReferenceMatch newFieldReferenceMatch ( IJavaElement enclosingElement , IJavaElement localElement , Binding enclosingBinding , int accuracy , int offset , int length , ASTNode reference ) { } public SearchMatch newLocalVariableReferenceMatch ( IJavaElement enclosingElement , int accuracy , int offset , int length , ASTNode reference ) { } public MethodReferenceMatch newMethodReferenceMatch ( IJavaElement enclosingElement , Binding enclosingBinding , int accuracy , int offset , int length , boolean isConstructor , boolean isSynthetic , ASTNode reference ) { } public PackageReferenceMatch newPackageReferenceMatch ( IJavaElement enclosingElement , int accuracy , int offset , int length , ASTNode reference ) { } public SearchMatch newTypeParameterReferenceMatch ( IJavaElement enclosingElement , int accuracy , int offset , int length , ASTNode reference ) { }

Fix:
map . put ( CompilerOptions . OPTION_TaskTags , Util . EMPTY_STRING ) ;