Community
Participate
Working Groups
Consider the following example: import java.util.HashMap; import java.util.Iterator; import java.util.Map; public class Example { private Map map = new HashMap(); public void logAll() { for (Iterator i = map.entrySet().iterator(); i.hasNext();) { Map.Entry entry = (Map.Entry) i.next(); System.out.println(entry.getKey() + "->" + entry.getValue()); } } } When selecting the class file and choosing Search->Java from the menu and entring pattern : "*" search for: package limit to : references scope : selected resources Map.Entry is wrongly identified as a package. It is a class. This search is used in the Metrics project and causes confusion in the package dependency analysis. With kind regards, Uwe Kubosch
Fixed and released in HEAD. Qualified type reference which does not include any package are now not reported as match by search engine. [jdt-core-internal] Changes done in method matchReportReference(ASTNode,IJavaElement,Binding,int, MatchLocator) of PackageReferenceLocator. Test case added in JavaSearchBugsTests
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.