### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java,v retrieving revision 1.275 diff -u -r1.275 Scope.java --- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 16 May 2006 14:14:34 -0000 1.275 +++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 18 May 2006 11:49:49 -0000 @@ -1121,7 +1121,7 @@ if (isCompliant14 && (receiverType.isAbstract() || receiverType.isTypeVariable())) { MethodBinding interfaceMethod = findDefaultAbstractMethod(receiverType, selector, argumentTypes, invocationSite, classHierarchyStart, found); - if (interfaceMethod != null) { + if (interfaceMethod != null && interfaceMethod.isValidBinding()) { candidates = new MethodBinding[] {compatibleMethod, interfaceMethod}; return mostSpecificMethodBinding(candidates, 2, argumentTypes, invocationSite, receiverType); } @@ -1201,7 +1201,7 @@ if (isCompliant14 && (receiverType.isAbstract() || receiverType.isTypeVariable())) { MethodBinding interfaceMethod = findDefaultAbstractMethod(receiverType, selector, argumentTypes, invocationSite, classHierarchyStart, found); - if (interfaceMethod != null) { + if (interfaceMethod != null && interfaceMethod.isValidBinding()) { candidates = new MethodBinding[] {candidates[0], interfaceMethod}; return mostSpecificMethodBinding(candidates, 2, argumentTypes, invocationSite, receiverType); } @@ -1243,7 +1243,7 @@ // see if there is a better match in the interfaces - see AutoBoxingTest 99 MethodBinding interfaceMethod = findDefaultAbstractMethod(receiverType, selector, argumentTypes, invocationSite, classHierarchyStart, found); - if (interfaceMethod != null) { + if (interfaceMethod != null && interfaceMethod.isValidBinding()) { candidates = new MethodBinding[] {mostSpecificMethod, interfaceMethod}; return mostSpecificMethodBinding(candidates, 2, argumentTypes, invocationSite, receiverType); }