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 246008

Summary: "Introduce Field" does not apply to member sort order's "insertation point" setting
Product: java Reporter: markiewb
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description markiewb 2014-07-25 14:11:19 UTC
I configured a member sort order at Tools|Options|Editor|Formatting|Java|Ordering and set the "Insertation Point" to "Ordered In Category". When I use the hint "introduce field" the new field is placed below the method where I extracted the field from.

ACTUAL: code format after "introduce field" does not apply to the setting "insertation point".

EXPECTED: code format after "introduce field" applies to the setting "insertation point"/member sort order

Workaround: Call "Sort Members" after applying the hint
Comment 1 Svata Dedic 2014-08-08 05:47:30 UTC
Fixed by jet-main#2a38dd202c4d
Comment 2 Quality Engineering 2014-08-10 01:50:55 UTC
Integrated into 'main-silver', will be available in build *201408100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2a38dd202c4d
User: Svata Dedic <sdedic@netbeans.org>
Log: #246008: member ordering settings applied when inserting field/method