Bug 103139

Summary: Wrong markers "...cannot be resolved to a type"
Product: [Eclipse Project] JDT Reporter: Tom Zimmermann <zimmerth>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: bmiller, daniel_megert
Version: 3.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Tom Zimmermann CLA 2005-07-08 05:26:56 EDT
Eclipse creates wrong markers that say "Quux cannot be resolved to a type". Quux is a class that is 
defined in a file Bar.java with access level package private.

Sample code:

** File Bar.java **
class Quux {}

** File Foo.java **
public class Foo {
	public static void main(String[] args) {
		Quux a = new Quux();
	}
}

How to reproduce the failure:
1.) Create the two files Foo.java and Bar.java
2.) Restart Eclipse
3.) Open Foo.java first. There are no errors in the Problems View but the declaration "Quux a =..." has 
an error marker (actually two).
4.) Open Bar.java
5.) Go to the Foo.java editor
6.) The incorrect error markers have disappeared
Comment 1 Philipe Mulet CLA 2005-07-11 05:51:35 EDT

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