| Summary: | IJavaProject::find(String) returns null for non-primary top-level types | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> |
| Component: | Core | Assignee: | 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: | |||
NameLookup incorrectly assumes that a top-level class X is always defined in a file called X.java Namelookup would have to open every single file in p (and maybe more) to find this type. Use the search engine instead. Reopening to consider as part of resolving bug 36032 |
for a compilation unit A.java: <source> package p; public class A{ } class A1{ } </source> calling IJavaProject.findType("p.A1") returns null