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.
(To avoid confusion with Java Annotations, I will refer to the icons that appear in the line number sidebar as "line icons" rather than "annotations" as they are called in NetBeans Options.) Inspired by something that came up in issue 129310, some NetBeans line icons appear on the wrong line if the element has been annotated. This includes the "Implements" and "Overrides" icons, warnings, hints, errors, etc. Some examples: - The "Implements" and "Overrides" line icons should *always* appear on the line with the @Overrides annotation, if there is one. - If you have Tools > Options > Editor > Hints > Java > Standard Javac warnings > Serialization enabled and you have annotated a Serializable class, the serializable warning appears on the line of the first annotation. Instead, it should appear... (1) on the line where the java.io.Serializable interface implementation is declared OR (2) on the line where the superclass is declared if java.io.Serializable is inherited from a superclass OR (3) on the line where the *first* Serializable superinterface implementation is declared if java.io.Serializable is inherited from a superinterface.
BTW: would it be possible that com.sun.source.tree.MethodTree.getName() is changed to return a Tree before this goes to the official API? Currently it's really not easy to find out the position of the method name in the source code.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss