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 - org.netbeans.modules.java.editor.codegen.GeneratorUtils$DuplicateMemberException: Class member already exists
Summary: org.netbeans.modules.java.editor.codegen.GeneratorUtils$DuplicateMemberExcept...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-23 19:26 UTC by locked
Modified: 2018-04-20 20:17 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 221417


Attachments
stacktrace (5.13 KB, text/plain)
2016-02-23 19:26 UTC, locked
Details
stacktrace (5.13 KB, text/plain)
2017-05-24 21:10 UTC, athompson
Details

Note You need to log in before you can comment on or make changes to this bug.
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.