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 111927 - Adding @override via hint causes incorrect decorator to appear
Summary: Adding @override via hint causes incorrect decorator to appear
Status: RESOLVED DUPLICATE of bug 105808
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-03 16:10 UTC by tfrysinger
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tfrysinger 2007-08-03 16:10:32 UTC
Create an inner class that extends something with many public abstract methods that need to be overridden. NB properly
decorates each method as needing the '@Override' annotation.

Select the first hint and execute it. NB inserts the @Override (although doesn't do it with the correct indent, see
issue 84620), and the decorator changes to the green "O" indicating the @Override is on that line. 

The bug: *all* the methods now needing the @Override show the green "O" in the gutter. If I do editing (like to fix the
indent problem), then all the other green decorators properly go away.
Comment 1 Jiri Prox 2007-08-06 09:36:09 UTC
Can you, please,  attach screenshot? Thanks
Comment 2 Vitezslav Stejskal 2007-08-20 14:20:43 UTC
IMO this is a duplicate of #105808. Each of the methods you mentioned should have two annotations - the green capital O
and the warning triangle with the hint for adding @Override. There should also be the black arrow allowing to cycle
between them and change the visible annotation. Depending on the order in which these annotations are added there can be
either of them visible.

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