Index: search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java,v retrieving revision 1.56 diff -u -r1.56 MethodLocator.java --- search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java 15 Jun 2005 06:30:08 -0000 1.56 +++ search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java 21 Jun 2005 16:19:52 -0000 @@ -50,49 +50,61 @@ } } /* - * Return whether a method may override a method in super classes erasures or not. + * Return possible type hierarchy method which may override a given method binding. */ -private boolean isErasureMethodOverride(ReferenceBinding type, MethodBinding method) { - if (type == null) return false; +private MethodBinding possibleOverriddenMethod(ReferenceBinding type, MethodBinding method) { + if (type == null) return null; // matches superclass if (!type.isInterface() && !CharOperation.equals(type.compoundName, TypeConstants.JAVA_LANG_OBJECT)) { ReferenceBinding superClass = type.superclass(); if (superClass.isParameterizedType()) { + MethodBinding[] methods = superClass.getMethods(this.pattern.selector); + int length = methods.length; + for (int i = 0; i