Bug 22883

Summary: IJavaProject::find(String) returns null for non-primary top-level types
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2002-08-27 05:29:14 EDT
for a compilation unit A.java:
<source>
package p;
public class A{
}
class A1{
}
</source>

calling IJavaProject.findType("p.A1") returns null
Comment 1 Adam Kiezun CLA 2002-08-27 05:38:01 EDT
NameLookup incorrectly assumes that a top-level class X is always defined in a 
file called X.java
Comment 2 Jerome Lanneluc CLA 2002-08-29 05:58:36 EDT
Namelookup would have to open every single file in p (and maybe more) to find 
this type.

Use the search engine instead.
Comment 3 Jerome Lanneluc CLA 2005-09-29 09:30:05 EDT
Reopening to consider as part of resolving bug 36032
Comment 4 Jerome Lanneluc CLA 2005-09-29 09:30:30 EDT

*** This bug has been marked as a duplicate of 36032 ***