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 202240 - [71cat] different behaviour of getter/setter generation
Summary: [71cat] different behaviour of getter/setter generation
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-16 15:12 UTC by muellermi
Modified: 2014-07-03 09:46 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 muellermi 2011-09-16 15:12:22 UTC
Product Version = NetBeans IDE Dev (Build 201109141017)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) Client VM 21.0-b17

given an attribute
private int _accountId;

refactoring, encapsulate field generates
    public void setAccountId(int accountId) {...

whilst
insert code, getter/setters
does it this way:
    public void setAccountId(int _accountId) {...

It doesn't remove the underscore
Comment 1 Svata Dedic 2014-07-03 09:46:29 UTC
encapsulate fields generates a setter with _ as well