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 238110 - Refactor/introduce field inserts declaration after the current method
Summary: Refactor/introduce field inserts declaration after the current method
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-07 17:31 UTC by ajeh
Modified: 2016-07-07 07:16 UTC (History)
0 users

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 ajeh 2013-11-07 17:31:55 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) Client VM 24.0-b56

This is creating a mess in the class. The declarations must be at the beginning of the class before all methods.
Comment 1 Ralph Ruijs 2013-11-11 08:48:24 UTC
By default NetBeans inserts new members at the caret location (or the first valid location below). You can change this in Tools->Options->Editor->Formatting->Java->Ordering
Comment 2 ajeh 2013-11-12 19:33:14 UTC
That's not true.
Default sort order is Fields above Methods.
This is not being abided by when inserting a field.
Comment 3 Ralph Ruijs 2013-11-12 21:47:28 UTC
(In reply to ajeh from comment #2)
> That's not true.
> Default sort order is Fields above Methods.

That is true, but there is separate option for inserting new members.
Comment 4 ajeh 2013-11-13 15:16:54 UTC
Is your ultimate goal to make NetBeans as user-unfriendly as possible then?
The choice of default is the absolute worst.
Comment 5 Martin Balin 2016-07-07 07:16:29 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss