Bug 95396

Summary: Package visible type not resolved until editor is opened on it
Product: [Eclipse Project] JDT Reporter: Ryan Manwiller <ryanman>
Component: CoreAssignee: 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:
Description Flags
screenshot of editor problem none

Description Ryan Manwiller CLA 2005-05-16 12:48:07 EDT
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.
Comment 1 Ryan Manwiller CLA 2005-05-16 12:50:17 EDT
Created attachment 21219 [details]
screenshot of editor problem
Comment 2 Philipe Mulet CLA 2005-05-17 05:01:47 EDT
Know issue with secondary types. 
Workaround: rename file B.java into C.java.

Comment 3 Philipe Mulet CLA 2005-05-17 06:05:31 EDT

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