Buggy code:
public class SelectionRequestor implements ISelectionRequestor { protected NameLookup nameLookup ; protected Openable openable ; protected IJavaElement [ ] elements = JavaElement . NO_ELEMENTS ; protected int elementIndex = - 1 ; protected HandleFactory handleFactory = new HandleFactory ( ) ; public SelectionRequestor ( NameLookup nameLookup , Openable openable ) { } private void acceptBinaryMethod ( IType type , IMethod method , char [ ] uniqueKey , boolean isConstructor ) { } protected void acceptBinaryMethod ( IType type , char [ ] selector , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , String [ ] parameterSignatures , char [ ] [ ] typeParameterNames , char [ ] [ ] [ ] typeParameterBoundNames , char [ ] uniqueKey , boolean isConstructor ) { IMethod method = type . getMethod ( new String ( selector ) , parameterSignatures ) ; if ( method . exists ( ) ) { if ( ( typeParameterNames != null ) && ( ( typeParameterNames . length ) != 0 ) ) { IMethod [ ] methods = type . findMethods ( method ) ; <START_BUG> if ( ( methods . length ) > 1 ) { <END_BUG> for ( int i = 0 ; i < ( methods . length ) ; i ++ ) { if ( areTypeParametersCompatible ( methods [ i ] , typeParameterNames , typeParameterBoundNames ) ) { acceptBinaryMethod ( type , method , uniqueKey , isConstructor ) ; } } return ; } } acceptBinaryMethod ( type , method , uniqueKey , isConstructor ) ; } } public void acceptType ( char [ ] packageName , char [ ] typeName , int modifiers , boolean isDeclaration , char [ ] uniqueKey , int start , int end ) { } public void acceptError ( CategorizedProblem error ) { } public void acceptField ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] name , boolean isDeclaration , char [ ] uniqueKey , int start , int end ) { } public void acceptLocalField ( FieldBinding fieldBinding ) { } public void acceptLocalMethod ( MethodBinding methodBinding ) { } public void acceptLocalType ( TypeBinding typeBinding ) { } public void acceptLocalTypeParameter ( TypeVariableBinding typeVariableBinding ) { } public void acceptLocalMethodTypeParameter ( TypeVariableBinding typeVariableBinding ) { } public void acceptLocalVariable ( LocalVariableBinding binding ) { } public void acceptMethod ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , String enclosingDeclaringTypeSignature , char [ ] selector , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , String [ ] parameterSignatures , char [ ] [ ] typeParameterNames , char [ ] [ ] [ ] typeParameterBoundNames , boolean isConstructor , boolean isDeclaration , char [ ] uniqueKey , int start , int end ) { } public void acceptPackage ( char [ ] packageName ) { } protected void acceptSourceMethod ( IType type , char [ ] selector , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , String [ ] parameterSignatures , char [ ] [ ] typeParameterNames , char [ ] [ ] [ ] typeParameterBoundNames , char [ ] uniqueKey ) { } protected void acceptMethodDeclaration ( IType type , char [ ] selector , int start , int end ) { } 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 selectorEnd , char [ ] typeParameterName , boolean isDeclaration , int start , int end ) { } protected void addElement ( IJavaElement element ) { } private boolean areTypeParametersCompatible ( IMethod method , char [ ] [ ] typeParameterNames , char [ ] [ ] [ ] typeParameterBoundNames ) { } protected IJavaElement findLocalElement ( int pos ) { } public IJavaElement [ ] getElements ( ) { } protected IType resolveType ( char [ ] packageName , char [ ] typeName , int acceptFlags ) { } protected IType resolveTypeByLocation ( char [ ] packageName , char [ ] typeName , int acceptFlags , int start , int end ) { } }

Fix:
if ( ( methods != null ) && ( ( methods . length ) > 1 ) ) {