Bug 49458 - [painting] wrong error highlighting of imports after adding jar
Summary: [painting] wrong error highlighting of imports after adding jar
Status: RESOLVED DUPLICATE of bug 65267
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-02 07:39 EST by Thorsten van Ellen CLA
Modified: 2009-02-11 04:50 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten van Ellen CLA 2004-01-02 07:39:12 EST
Assume you are importing and using some classes,
that are not in the build path of eclipse.
-> Such errors are added as tasks!

Double click on such a task. The editor with the source
will be opened and it highlights the imports as errors.

Now, add the jar to the buildpath, that contain that missing classes.
Eclipse updates its information an the error-highlights disappear 
in the editor.

Close the editor and reopen the task. 

THE ERROR HIGHLIGHTS REAPPEARS AT THE IMPORTS WITHOU REASON!

best regards

Thorsten van Ellen
Comment 1 Philipe Mulet CLA 2004-01-08 06:51:39 EST
Editor issue.
Comment 2 Dirk Baeumer CLA 2004-01-12 06:21:26 EST
Thorsten, are you sure you triggered a build after you changed the class path. 
This is very likely since the error still exists in the task list.

Please note that the editor shows two kinds of errors: errors in the 
associated class file and error in the source. The might be out of sync when a 
file isn't compiled.
Comment 3 Thorsten van Ellen CLA 2004-01-12 11:14:07 EST
Hi Dirk!

Seems as if I can not repeat it easily ...
But now the highlighting flickers after refocusing 
(no close and reopen) the editor!
Seems as if all highligts disappears very shortly and
reappears!?

I'm nearly sure, that I did NOT trigger a build explicitly by the menu and
eclipse is configured to do not automatically at every source change!
And I'm not sure, whether I triggered a refresh! But I think not.

And I'm very sure: 
first the higlighting disappeard,
than only after closing and reopening the task/editor it reappeared!

best regards

Thorsten van Ellen
Comment 4 Thorsten van Ellen CLA 2004-01-26 09:57:26 EST
Hi Dirk!

I got it again. But this time it has nothing to do with the tasks!
I only added a missing lib to the build path -> highligthing still appears
I refreshed -> highligthing disappears
I closed and reopened the source -> highlighting reappears!

This one is not really serious, but irritating.
It is a BUG in this version, don't know more details to reproduce it.
Close it again, keep it open or make it less severe, as you think it is 
reasonable.

best regards

Thorsten van Ellen
Comment 5 Dani Megert CLA 2009-02-11 04:50:20 EST

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