Community
Participate
Working Groups
1) create VectXX.java public class VectXX { public class VectYY { } } 2) if you use the following search request with VectXX in your workspace, one of the result is the VectYY() constructor. But this methods doesn't exist. SearchRequestor searchRequestor = new SearchRequestor() { public void acceptSearchMatch(SearchMatch match) throws CoreException { IJavaElement element = (IJavaElement) match.getElement(); if(!element.exists()) { System.out.println(element); } } }; new BasicSearchEngine(workingCopies).search( SearchPattern.createPattern( String.valueOf("Vect"), IJavaSearchConstants.CONSTRUCTOR, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_PREFIX_MATCH)), new SearchParticipant[]{BasicSearchEngine.getDefaultSearchParticipant()}, aScope, searchRequestor, null);
Fixed and released in HEAD. Changes done in MatchLocator reportMatching(AbstractMethodDeclaration,...) to use type instead of method for match associated element as default constructor does not exist in source... Test case added in JavaSearchBugsTests
Verified for 3.2M4 in I20051212-2000.