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

Summary: [71cat] different behaviour of getter/setter generation
Product: java Reporter: muellermi <muellermi>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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