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 109906 - Make "Mark Occurrences" of "Exit Points From Method" work on "return" keyword.
Summary: Make "Mark Occurrences" of "Exit Points From Method" work on "return" keyword.
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-16 21:28 UTC by matthies
Modified: 2013-09-02 14:21 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description matthies 2007-07-16 21:28:44 UTC
When placing the caret on a "return" keyword, highlight all exit points of the current method body if "Mark 
Occurrences" of "Exit Points From Method" has been enabled. This would make it consistent with other "Mark 
Occurrences", where placing the caret on one occurrence of a certain thing marks all occurrences of that thing.

See also issue 109903: Maybe marking exit points by placing the caret on the return type should be a separate option 
from the above, if it is adopted. Personally I find the current behavior unintuitive, as exit points are not 
occurrences of the return type, at least not in the sense in which occurrences of a type are handled elsewhere. A 
possible alternative would be to highlight exit points of a block when placing the caret on the opening brace of a 
block.