Bug 95396 - Package visible type not resolved until editor is opened on it
Summary: Package visible type not resolved until editor is opened on it
Status: RESOLVED DUPLICATE of bug 36032
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-16 12:48 EDT by Ryan Manwiller CLA
Modified: 2005-05-17 06:05 EDT (History)
0 users

See Also:


Attachments
screenshot of editor problem (31.62 KB, image/jpeg)
2005-05-16 12:50 EDT, Ryan Manwiller CLA
no flags Details

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