| Summary: | Wrong markers "...cannot be resolved to a type" | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Tom Zimmermann <zimmerth> |
| Component: | Core | Assignee: | 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: | |||
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