Summary: | Bogus "XXX cannot be resolved to a type" annotations in editor | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Richard Dunlap <rdunlap> | ||||
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> | ||||
Status: | RESOLVED DUPLICATE | QA Contact: | |||||
Severity: | major | ||||||
Priority: | P3 | ||||||
Version: | 3.1.1 | ||||||
Target Milestone: | --- | ||||||
Hardware: | Macintosh | ||||||
OS: | Mac OS X - Carbon (unsup.) | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Richard Dunlap
2005-11-09 10:19:53 EST
Created attachment 29600 [details]
Image of bogus error annotations
Here is a snapshot of a typical editor with false error indications, note the
lack of an error indication on the file tab at the top of the window.
Would it be possible to get a test case that would help us to reproduce this issue? (In reply to comment #2) > Would it be possible to get a test case that would help us to reproduce this issue? Hmm... Where to begin? First, there's nothing special that I am doing. I'm just opening a file in the editor. It was working yesterday, nothing changed and the problem just surfaced last night. I was forced to kill Eclipse because it froze up last night. Perhaps something in the project was corrupted? I could give you a little background about the projects. My workspace has multiple projects, two of these projects depend upon two other projects. They also depend upon two Jar file libraries. The projects contain multiple source directories which are links to directories outside of the workspace. Are there any logs that I could look at (other than the main error log)? Or is there any metadata I can delete? etc? Yes I DO have a test case!! And a very simple one at that. Create the following two files in the same Java package. in Foo.java: ------START FILE-------- public class Foo { } class Bar { } -------END FILE--------- in FooBar.java: ------START FILE-------- public class FooBar extends Bar { } -------END FILE--------- That's it! Now, it will all compile. But if you open 'FooBar.java' while the file 'Foo.java' is NOT open, you will see the error annotation in question (cannot resolve type Bar). However, if you open the file 'Foo.java', the problem goes away. |