This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 45995 - Override annotations often fall out of synch with code
Summary: Override annotations often fall out of synch with code
Status: RESOLVED DUPLICATE of bug 45183
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-09 22:25 UTC by Jesse Glick
Modified: 2007-11-05 13:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (7.58 KB, image/png)
2004-07-09 22:26 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-07-09 22:25:56 UTC
040708, but not a new problem. Sometimes after
making code edits, override/implementation
annotations appear in positions that are no longer
correct, often ridiculously.

E.g.: the class R here implements a NetBeans
interface. I wrote the class skeleton, then used
Synchronize, which gave me the three required methods

addChangeListener
getRoots
removeChangeListener

After I cut getRoots and pasted it further up,
here is what I see (the file is saved, so this is
not so transient).
Comment 1 Jesse Glick 2004-07-09 22:26:29 UTC
Created attachment 16182 [details]
Screenshot
Comment 2 Jesse Glick 2004-07-09 22:27:29 UTC
Note that triggering a reparse - e.g. press Space, Delete, Ctrl-S -
does not fix the annotations. That is why I think it is a problem in
the editor annotations layer, rather than in the Java model which is
usually refreshed by this trick when it gets stuck.
Comment 3 Jesse Glick 2004-07-09 22:29:56 UTC
BTW something like this happens pretty reproducibly when moving around
methods generated by Synchronize; not a rare bug.
Comment 4 _ tboudreau 2004-07-12 05:54:13 UTC
See also issue 39041 - it is the same problem, more or less
Comment 5 Dusan Balek 2004-07-14 10:12:36 UTC

*** This issue has been marked as a duplicate of 45183 ***