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

Summary: Make "Mark Occurrences" of "Exit Points From Method" work on "return" keyword.
Product: java Reporter: matthies <matthies>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

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.