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 225267 - Down Arrow Does Not Cycle Annotations On Interface Correctly When Method Is On Same Line
Summary: Down Arrow Does Not Cycle Annotations On Interface Correctly When Method Is O...
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-24 07:08 UTC by MackSix
Modified: 2016-07-07 07:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project for reproduction of bug (39.96 KB, application/zip)
2013-01-24 07:08 UTC, MackSix
Details
2nd project (42.08 KB, application/zip)
2013-01-24 12:33 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-01-24 07:08:47 UTC
Created attachment 130563 [details]
project for reproduction of bug

1. Open attached project in Netbeans.
2. Open net.mindview.util/Generator.java file.
3. Notice "down arrow" on line number that indicates there are 2 annotations.
4. Clicking the down arrow to cycle shows same "Has Implementations" badge and there is only 1 implementation.

Expected: Only 1 annotation should shown.

Product Version: NetBeans IDE 7.3 RC1 (Build 201301172100)
Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Jiri Prox 2013-01-24 11:18:41 UTC
The two badges are ok, the first one is for Generator interface (this interface has implementation), the second one is for method next() which is implemented.

The problem is that the 'down arrow' does not cycle among the annotation correctly
Comment 2 MackSix 2013-01-24 12:32:32 UTC
(In reply to comment #1)
> The two badges are ok, the first one is for Generator interface (this interface
> has implementation), the second one is for method next() which is implemented.
> 
> The problem is that the 'down arrow' does not cycle among the annotation
> correctly

Ah, I see that. 

If I move the next() method to the next line in the interface, the second badge moves to the next line. If I have multiple implementations of the interface in this case, the list that shows the different implementations shows all the interface and the next() method implementations on both annotations. 

See the second attached project with multiple implementations of the interface and next() method.
Comment 3 MackSix 2013-01-24 12:33:42 UTC
Created attachment 130578 [details]
2nd project
Comment 4 MackSix 2013-01-24 12:43:35 UTC
The way it works sort of makes sense because you have to implement the methods in an interface--you would never have one implemented without the other.
Comment 5 MackSix 2013-01-24 13:14:24 UTC
I guess the 2 lists on the Inteface and next() method just appear the same, if you click, they do go to the right line in the implementation respectfully.
Comment 6 MackSix 2013-01-24 14:21:20 UTC
It still does not cycle through the respective lists when the methods are on the same line as the interface declaration as per Comment 1.
Comment 7 Roman Svitanic 2013-07-12 10:04:37 UTC
Down arrow cycles annotations in this case correctly, but the problem is that both annotations have same start offset.

This is a minor problem in a very specific case (method on the same line as interface declaration) and moreover the shortcut "Go to implementation" (CTRL+ALT+B) is working properly even in this case. That said I am lowering this to P4.

Thanks for understanding!
Comment 8 Martin Balin 2016-07-07 07:29:27 UTC
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