Index: search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java,v retrieving revision 1.248 diff -u -r1.248 MatchLocator.java --- search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java 14 Jun 2005 16:33:53 -0000 1.248 +++ search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java 14 Jun 2005 16:50:07 -0000 @@ -1521,7 +1521,9 @@ // it's just for debug purposes... ignore all exceptions in this area } try { - System.out.println("\tJava element: " + ((JavaElement)match.getElement()).toStringWithAncestors()); //$NON-NLS-1$ + JavaElement javaElement = (JavaElement)match.getElement(); + System.out.println("\tJava element: "+ javaElement.toStringWithAncestors()); //$NON-NLS-1$ + if (!javaElement.exists()) System.out.println("\t\tWARNING: this element does NOT exist!"); //$NON-NLS-1$ } catch (Exception e) { // it's just for debug purposes... ignore all exceptions in this area } 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.55 diff -u -r1.55 MethodLocator.java --- search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java 9 Jun 2005 13:05:34 -0000 1.55 +++ search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java 14 Jun 2005 16:50:08 -0000 @@ -452,6 +452,9 @@ String[] parameterTypes = new String[parameterLength]; for (int i = 0; i < parameterLength; i++) { char[] typeName = parameters[i].shortReadableName(); + if (parameters[i].isMemberType()) { + typeName = CharOperation.subarray(typeName, CharOperation.indexOf('.', typeName)+1, typeName.length); + } parameterTypes[i] = Signature.createTypeSignature(typeName, false); } IMethod method = type.getMethod(new String(bindingSelector), parameterTypes);