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 255568 - Documentation gets coppied when renaming enums
Summary: Documentation gets coppied when renaming enums
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0.2
Hardware: PC Windows 10
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-25 13:42 UTC by neumi5694
Modified: 2016-04-28 02:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (65.54 KB, text/plain)
2015-09-25 13:42 UTC, neumi5694
Details

Note You need to log in before you can comment on or make changes to this bug.
Description neumi5694 2015-09-25 13:42:28 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

When renaming the Elements of a enum (all but the first one), the documentation for the first element gets doubled.
So after 2 renaming operations I get this result:

public enum EnumExample {
    /**
     * Description of FirstThingy
     *//**
     * Description of FirstThingy
     *//**
     * Description of FirstThingy
     *//**
     * Description of FirstThingy
     */
    FirstThingy,
    /**
     * Description of SecondThingyNewName
     */
    SecondThingy_Renamed_using_Refactor,
    /**
     * Description of first ThirdThingyNewName
     */
    ThirdThingy_Renamed_using_Refactor
}


It gets worse when I try to rename the first element:
Then the first element looks like this (before any other rename operations):
    /**
     * Description of FirstThingy
     */Description of FirstThingy_Renamed_using_Refactor
     */
    FirstThingy_Renamed_using_Refactor,
Comment 1 neumi5694 2015-09-25 13:42:31 UTC
Created attachment 156428 [details]
IDE log
Comment 2 Svata Dedic 2016-04-26 11:57:30 UTC
Fixed in jet-main#2aad4c642727
Comment 3 Quality Engineering 2016-04-28 02:02:50 UTC
Integrated into 'main-silver', will be available in build *201604280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2aad4c642727
User: Svata Dedic <sdedic@netbeans.org>
Log: #255568: respect the text already copied over in e.g. comments or annotations