Buggy code:
class DefaultBindingResolver extends BindingResolver { static class BindingTables { Map bindingKeysToBindings ; Map compilerBindingsToASTBindings ; BindingTables ( ) { } } Map astNodesToBlockScope ; Map bindingsToAstNodes ; DefaultBindingResolver . BindingTables bindingTables ; Map newAstToOldAst ; private CompilationUnitScope scope ; WorkingCopyOwner workingCopyOwner ; DefaultBindingResolver ( CompilationUnitScope scope , WorkingCopyOwner workingCopyOwner , DefaultBindingResolver . BindingTables bindingTables ) { } DefaultBindingResolver ( LookupEnvironment lookupEnvironment , WorkingCopyOwner workingCopyOwner , DefaultBindingResolver . BindingTables bindingTables ) { } synchronized ASTNode findDeclaringNode ( IBinding binding ) { } synchronized ASTNode findDeclaringNode ( String bindingKey ) { } IBinding getBinding ( Binding binding ) { } synchronized org . eclipse . jdt . internal . compiler . ast . ASTNode getCorrespondingNode ( ASTNode currentNode ) { } synchronized IMethodBinding getMethodBinding ( MethodBinding methodBinding ) { if ( methodBinding != null ) { if ( methodBinding . isValidBinding ( ) ) { IMethodBinding binding = ( ( IMethodBinding ) ( this . bindingTables . compilerBindingsToASTBindings . get ( methodBinding ) ) ) ; if ( binding != null ) { return binding ; } binding = new MethodBinding ( this , methodBinding ) ; this . bindingTables . compilerBindingsToASTBindings . put ( methodBinding , binding ) ; return binding ; } else { switch ( methodBinding . problemId ( ) ) { case ProblemReasons . NotVisible : case ProblemReasons . NonStaticReferenceInStaticContext : case ProblemReasons . NonStaticReferenceInConstructorInvocation : ReferenceBinding declaringClass = methodBinding . declaringClass ; if ( declaringClass != null ) { <START_BUG> MethodBinding exactBinding = declaringClass . getExactMethod ( methodBinding . selector , methodBinding . parameters ) ; <END_BUG> if ( exactBinding != null ) { IMethodBinding binding = ( ( IMethodBinding ) ( this . bindingTables . compilerBindingsToASTBindings . get ( exactBinding ) ) ) ; if ( binding != null ) { return binding ; } binding = new MethodBinding ( this , exactBinding ) ; this . bindingTables . compilerBindingsToASTBindings . put ( exactBinding , binding ) ; return binding ; } } break ; } } } return null ; } synchronized IPackageBinding getPackageBinding ( PackageBinding packageBinding ) { } private int getTypeArguments ( ParameterizedQualifiedTypeReference typeReference ) { } synchronized ITypeBinding getTypeBinding ( TypeBinding referenceBinding ) { } synchronized IVariableBinding getVariableBinding ( VariableBinding variableBinding ) { } LookupEnvironment lookupEnvironment ( ) { } synchronized void recordScope ( ASTNode astNode , BlockScope blockScope ) { } boolean resolveBoxing ( Expression expression ) { } boolean resolveUnboxing ( Expression expression ) { } Object resolveConstantExpressionValue ( Expression expression ) { } synchronized IMethodBinding resolveConstructor ( ClassInstanceCreation expression ) { } synchronized IMethodBinding resolveConstructor ( ConstructorInvocation expression ) { } IMethodBinding resolveConstructor ( EnumConstantDeclaration enumConstantDeclaration ) { } synchronized IMethodBinding resolveConstructor ( SuperConstructorInvocation expression ) { } synchronized ITypeBinding resolveExpressionType ( Expression expression ) { } synchronized IVariableBinding resolveField ( FieldAccess fieldAccess ) { } synchronized IVariableBinding resolveField ( SuperFieldAccess fieldAccess ) { } synchronized IBinding resolveImport ( ImportDeclaration importDeclaration ) { } IMethodBinding resolveMember ( AnnotationTypeMemberDeclaration declaration ) { } synchronized IMethodBinding resolveMethod ( MethodDeclaration method ) { } synchronized IMethodBinding resolveMethod ( MethodInvocation method ) { } synchronized IMethodBinding resolveMethod ( SuperMethodInvocation method ) { } synchronized IBinding resolveName ( Name name ) { } synchronized IPackageBinding resolvePackage ( PackageDeclaration pkg ) { } synchronized IBinding resolveReference ( MemberRef ref ) { } synchronized IBinding resolveReference ( MethodRef ref ) { } ITypeBinding resolveType ( AnnotationTypeDeclaration type ) { } synchronized ITypeBinding resolveType ( AnonymousClassDeclaration type ) { } ITypeBinding resolveType ( EnumDeclaration type ) { } synchronized ITypeBinding resolveType ( Type type ) { } synchronized ITypeBinding resolveType ( TypeDeclaration type ) { } synchronized ITypeBinding resolveTypeParameter ( TypeParameter typeParameter ) { } synchronized IVariableBinding resolveVariable ( EnumConstantDeclaration enumConstant ) { } synchronized IVariableBinding resolveVariable ( VariableDeclaration variable ) { } synchronized ITypeBinding resolveWellKnownType ( String name ) { } public CompilationUnitScope scope ( ) { } synchronized void store ( ASTNode node , org . eclipse . jdt . internal . compiler . ast . ASTNode oldASTNode ) { } synchronized void updateKey ( ASTNode node , ASTNode newNode ) { } }

Fix:
MethodBinding exactBinding = declaringClass . getExactMethod ( methodBinding . selector , methodBinding . parameters , null ) ;