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 254119 - org.netbeans.modules.java.editor.codegen.GeneratorUtils$DuplicateMemberException: Class member already exists
Summary: org.netbeans.modules.java.editor.codegen.GeneratorUtils$DuplicateMemberExcept...
Status: RESOLVED FIXED
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: 2015-08-04 09:54 UTC by Tomas Stupka
Modified: 2015-08-06 01:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218948


Attachments
stacktrace (2.61 KB, text/plain)
2015-08-04 09:54 UTC, Tomas Stupka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Stupka 2015-08-04 09:54:42 UTC
Build: NetBeans IDE Dev (Build 20150804-1c3de54a2a5c)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b07, Java(TM) SE Runtime Environment, 1.8.0_60-ea-b07
OS: Mac OS X

User Comments:
tstupka: in editor:
- introduce method ...
- picked a method name which already existed with the parameters that would result from the refactoring




Stacktrace: 
org.netbeans.modules.java.editor.codegen.GeneratorUtils$DuplicateMemberException: Class member already exists
   at org.netbeans.modules.java.editor.codegen.GeneratorUtils.insertClassMembers(GeneratorUtils.java:204)
   at org.netbeans.modules.java.editor.codegen.GeneratorUtils.insertClassMember(GeneratorUtils.java:252)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint$InsertClassMember.insertClassMember(IntroduceHint.java:966)
   at org.netbeans.modules.java.hints.introduce.IntroduceMethodFix$TaskImpl.run(IntroduceMethodFix.java:869)
   at org.netbeans.modules.java.hints.introduce.IntroduceMethodFix$TaskImpl.run(IntroduceMethodFix.java:472)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:635)
Comment 1 Tomas Stupka 2015-08-04 09:54:43 UTC
Created attachment 155160 [details]
stacktrace
Comment 2 Dusan Balek 2015-08-05 12:08:21 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/22f5221bc722
Comment 3 Quality Engineering 2015-08-06 01:24:42 UTC
Integrated into 'main-silver', will be available in build *201508060002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/22f5221bc722
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #254119 - org.netbeans.modules.java.editor.codegen.GeneratorUtils$DuplicateMemberException: Class member already exists - fixed.