Buggy code:
public IPackageFragment getPackageFragment ( ) { } public IJavaElement getPrimaryElement ( boolean checkOwner ) { } public String getSuperclassName ( ) throws JavaModelException { } public String getSuperclassTypeSignature ( ) throws JavaModelException { } public String [ ] getSuperInterfaceNames ( ) throws JavaModelException { } public String [ ] getSuperInterfaceTypeSignatures ( ) throws JavaModelException { } public ITypeParameter [ ] getTypeParameters ( ) throws JavaModelException { } public String [ ] getTypeParameterSignatures ( ) throws JavaModelException { } public IType getType ( String typeName ) { } public ITypeParameter getTypeParameter ( String typeParameterName ) { } public String getTypeQualifiedName ( ) { } public String getTypeQualifiedName ( char enclosingTypeSeparator ) { } public IType [ ] getTypes ( ) throws JavaModelException { } public boolean isAnonymous ( ) { } public boolean isClass ( ) throws JavaModelException { } public boolean isEnum ( ) throws JavaModelException { } public boolean isInterface ( ) throws JavaModelException { } public boolean isAnnotation ( ) throws JavaModelException { } public boolean isLocal ( ) { } public boolean isMember ( ) { } public boolean isResolved ( ) { } public ITypeHierarchy loadTypeHierachy ( InputStream input , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy loadTypeHierachy ( InputStream input , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newSupertypeHierarchy ( IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newSupertypeHierarchy ( ICompilationUnit [ ] workingCopies , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newSupertypeHierarchy ( IWorkingCopy [ ] workingCopies , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newSupertypeHierarchy ( WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newTypeHierarchy ( IJavaProject project , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newTypeHierarchy ( IJavaProject project , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newTypeHierarchy ( IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newTypeHierarchy ( ICompilationUnit [ ] workingCopies , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newTypeHierarchy ( IWorkingCopy [ ] workingCopies , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newTypeHierarchy ( WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException { } public JavaElement resolved ( Binding binding ) { } public String [ ] [ ] resolveType ( String typeName ) throws JavaModelException { } public String [ ] [ ] resolveType ( String typeName , WorkingCopyOwner owner ) throws JavaModelException { ISourceType info = ( ( ISourceType ) ( getElementInfo ( ) ) ) ; JavaProject project = ( ( JavaProject ) ( getJavaProject ( ) ) ) ; SearchableEnvironment environment = project . newSearchableNameEnvironment ( owner ) ; class TypeResolveRequestor implements ISelectionRequestor { String [ ] [ ] answers = null ; public void acceptType ( char [ ] packageName , char [ ] tName , int modifiers , boolean isDeclaration , char [ ] uniqueKey , int start , int end ) { String [ ] answer = new String [ ] { new String ( packageName ) , new String ( tName ) } ; if ( ( this . answers ) == null ) { this . answers = new String [ ] [ ] { answer } ; } else { int length = this . answers . length ; System . arraycopy ( this . answers , 0 , ( this . answers = new String [ length + 1 ] [ ] ) , 0 , length ) ; this . answers [ length ] = answer ; } } <START_BUG> public void acceptError ( IProblem error ) { <END_BUG> } public void acceptField ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] fieldName , boolean isDeclaration , char [ ] uniqueKey , int start , int end ) { } public void acceptMethod ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , String enclosingDeclaringTypeSignature , char [ ] selector , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , String [ ] parameterSignatures , boolean isConstructor , boolean isDeclaration , char [ ] uniqueKey , int start , int end ) { } public void acceptPackage ( char [ ] packageName ) { } public void acceptTypeParameter ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] typeParameterName , boolean isDeclaration , int start , int end ) { } public void acceptMethodTypeParameter ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] selector , int selectorStart , int selcetorEnd , char [ ] typeParameterName , boolean isDeclaration , int start , int end ) { } } TypeResolveRequestor requestor = new TypeResolveRequestor ( ) ; SelectionEngine engine = new SelectionEngine ( environment , requestor , project . getOptions ( true ) ) ; IType [ ] topLevelTypes = getCompilationUnit ( ) . getTypes ( ) ; int length = topLevelTypes . length ; SourceTypeElementInfo [ ] topLevelInfos = new SourceTypeElementInfo [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { topLevelInfos [ i ] = ( ( SourceTypeElementInfo ) ( ( ( SourceType ) ( topLevelTypes [ i ] ) ) . getElementInfo ( ) ) ) ; } engine . selectType ( info , typeName . toCharArray ( ) , topLevelInfos , false ) ; if ( NameLookup . VERBOSE ) { System . out . println ( ( ( ( ( Thread . currentThread ( ) ) + "<seq2seq4repair_space>TIME<seq2seq4repair_space>SPENT<seq2seq4repair_space>in<seq2seq4repair_space>NameLoopkup#seekTypesInSourcePackage:<seq2seq4repair_space>" ) + ( environment . nameLookup . timeSpentInSeekTypesInSourcePackage ) ) + "ms" ) ) ; System . out . println ( ( ( ( ( Thread . currentThread ( ) ) + "<seq2seq4repair_space>TIME<seq2seq4repair_space>SPENT<seq2seq4repair_space>in<seq2seq4repair_space>NameLoopkup#seekTypesInBinaryPackage:<seq2seq4repair_space>" ) + ( environment . nameLookup . timeSpentInSeekTypesInBinaryPackage ) ) + "ms" ) ) ; } return requestor . answers ; } protected void toStringInfo ( int tab , StringBuffer buffer , Object info , boolean showResolvedInfo ) { } }

Fix:
public void acceptError ( CategorizedProblem error ) {