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 258119

Summary: org.netbeans.modules.java.editor.codegen.GeneratorUtils$DuplicateMemberException: Class member already exists
Product: java Reporter: locked <locked>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: athompson, dvader666, fillumina, freekamel67, ivasquezp2010
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 221417
Attachments: stacktrace
stacktrace

Description locked 2016-02-23 19:26:37 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 10

User Comments:
Locked: ..

GUEST: Estava tentando criar getters e setters, mas alguns dos listados j
Comment 1 locked 2016-02-23 19:26:39 UTC
Created attachment 158621 [details]
stacktrace
Comment 2 athompson 2017-05-24 21:10:31 UTC
Created attachment 164400 [details]
stacktrace

trying to add getters and setters for a number of properties
Comment 3 athompson 2017-05-24 21:16:23 UTC
I had a String field named "enabled" which can contain the values "Y" or "N". I had a custom getter/setter for it which returned the value as a boolean. That is the source of the error as it tried to add the getter/setter again.