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 130814 - Keep property position when generating setter and getter
Summary: Keep property position when generating setter and getter
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-21 17:39 UTC by deniss
Modified: 2008-03-25 10:30 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 deniss 2008-03-21 17:39:28 UTC
Getters and setters aren't generated in the same position as their properties. 
In the current behaviour they are sorted alphabetically, but IMHO shouldn't by default.

Example:
class Person {
Integer id; 
Long version;
String name;
}

Generated:
set/get id
set/get name
set/get version

Expected:
set/get id
set/get version
set/get name
Comment 1 Jan Lahoda 2008-03-25 10:30:57 UTC
Would be good.