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

Summary: All fixes for the line are offered on Alt-Enter
Product: editor Reporter: Svata Dedic <sdedic>
Component: Hints & AnnotationsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: markiewb, mkristofic, ralphbenjamin
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 215629    

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.