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 202998 - @Override annotation breaks navigator
Summary: @Override annotation breaks navigator
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 16:16 UTC by Egor Ushakov
Modified: 2012-10-23 09:46 UTC (History)
2 users (show)

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 Egor Ushakov 2011-10-03 16:16:55 UTC
steps to reproduce:
- have a method overriding another method without @Override annotation
- Netbeans highlights such methods and advise to add the annotation
- hit alt+enter and add the annotation
it is added to the line above the method
- now double click on the method in the navigator
it will jump to the start of the @Override annotation and navigator will immediately switch to the class itself, not the method.
Magically if put carret inside the @Override annotation after the first letter r navigator will locate the method.
Comment 1 Tomas Zezula 2011-10-04 07:46:22 UTC
Seems to be introduced by new javac pull up.
Comment 2 Tomas Zezula 2012-10-23 08:13:02 UTC
Works fine in dev (NB 7.3).
Already fixed.
Comment 3 Egor Ushakov 2012-10-23 09:46:28 UTC
Great, it really works in current dev, thanks!
I believe it is better to mark it as fixed, because it was set for NB 7.0.1. And it definitely does not work there.