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 238925 - All fixes for the line are offered on Alt-Enter
Summary: All fixes for the line are offered on Alt-Enter
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks: 215629
  Show dependency tree
 
Reported: 2013-11-28 11:09 UTC by Svata Dedic
Modified: 2016-05-24 10:03 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2013-11-28 11:09:01 UTC
If there are more hint / error regions on the line, all fixes are offered even though the fix list is invoked by ALT-ENTER with caret standing on a specific error/hint region.

I think that either
- fixes relevant for the caret location should be ignored; if the caret is outside any hint region (but on line that has some fixes), all the fixes should be displayed, or

- fixes relevant for the caret location should be placed first, separated visually from the other fixes.

Posting as defect, since the offered fix list for the specified caret location fails the 'least surprise' principle that displayed items are relevant for the context + in the pathological case (see issue #215629) multiple same-named items are offered and even caret location does not help the user to be sure what's going to happen.