Bug 22883 - IJavaProject::find(String) returns null for non-primary top-level types
Summary: IJavaProject::find(String) returns null for non-primary top-level types
Status: RESOLVED DUPLICATE of bug 36032
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-27 05:29 EDT by Adam Kiezun CLA
Modified: 2005-09-29 09:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***