| Summary: | Package visible type not resolved until editor is opened on it | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Ryan Manwiller <ryanman> | ||||
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> | ||||
| Status: | RESOLVED DUPLICATE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 3.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 21219 [details]
screenshot of editor problem
Know issue with secondary types. Workaround: rename file B.java into C.java. |
Using Build id: I20050513-1415 To repro: 1. Create a new plugin project 2. Create a new class A in package test with this content: package test; public class A { public void test() { C c = new C(); } } 3. Create a new class B in package test with this content: package test; class C { } public class B { } 4. Save all 5. Close all files except A.java. 6. Shutdown the workbench 7. Start the workbench 8. You will see errors in the editor for A.java: C cannot be resolved to a type (see attachment). 9. Note that there are no problem markers in the package explorer and no problems in the problems view. 10. If you open B.java (which contains class C), the errors shown in A.java go away.