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 219533 - Code Breadcrumbs not working for else if
Summary: Code Breadcrumbs not working for else if
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
: 219532 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-04 15:14 UTC by crazyjavahacking
Modified: 2016-07-07 07:26 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Breadcrumbs else if bug (31.04 KB, image/png)
2012-10-04 15:14 UTC, crazyjavahacking
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crazyjavahacking 2012-10-04 15:14:07 UTC
Created attachment 125395 [details]
Breadcrumbs else if bug

Code Breadcrumbs are not working correctly for else if statements.

I guess the algorithm just adds every getCondition() for every IfTree object. Most likely related to http://netbeans.org/bugzilla/show_bug.cgi?id=219532

See attachment.


JDK 6u34 32bit, NetBeans Dev 201210040002
Comment 1 Svata Dedic 2012-11-07 15:17:34 UTC
Probably a specialcase will be needed for if-elseif-elseif-else. Formally else is a subnode of the if-statement; if in the else-if as well, although logically they're at the same level as the parent if.

try-catch-catch-finally may suffer from a similar problem.

Turning into an enhancement.
Comment 2 Svata Dedic 2012-11-07 15:18:04 UTC
*** Bug 219532 has been marked as a duplicate of this bug. ***
Comment 3 Martin Balin 2016-07-07 07:26:58 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