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 109903 - For methods without body, "Mark Occurrences" should not mean "Mark Exit Points".
Summary: For methods without body, "Mark Occurrences" should not mean "Mark Exit Points".
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-16 21:06 UTC by matthies
Modified: 2013-09-02 14:19 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:06:53 UTC
When positioning the caret on the return type of a method declaration, exit points of the method are highlighted 
via "Mark Occurrences". For abstract or interface methods, this doesn't make sense, as they have no body. Positioning 
the caret on the return type should highlight occurrences of the type instead for such methods.

Usage context: I placed the caret on the return type of an abstract method to have occurrences of that type 
highlighted. As this didn't work, I thought at first that "Mark Occurrences" was somehow broken. It took me quite some 
time to figure out why it didn't work. For methods with bodies, you at least see that something else is being 
highlighted.