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 192905 - Refactor class name in C++ breaks destructor
Summary: Refactor class name in C++ breaks destructor
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-06 08:33 UTC by mortennobel
Modified: 2010-12-07 06:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mortennobel 2010-12-06 08:33:39 UTC
How to reproduce.
1. Create a new C++ class using wizard (Header and implementation file with contructor, destructor and copy-contructor)
2. From the header file, right click on the class name in the editor and choose Refactor -> Rename
3. Now the class name is renamed in both header and implementation (and other usages), BUT if you go to the implementation file
    you will notice that the destructor has lost its ~ (and making it into a contructor instead).

Expected behavior
The refactor operation should not remove the ~ in the destructor.

Product Version = NetBeans IDE Dev (Build 201012060001)
Operating System = Mac OS X version 10.6.5 running on x86_64
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307
Comment 1 Vladimir Voskresensky 2010-12-06 17:23:26 UTC
fixed:
http://hg.netbeans.org/cnd-main?cmd=changeset;node=4a86576e7b7a
Comment 2 Quality Engineering 2010-12-07 06:11:14 UTC
Integrated into 'main-golden', will be available in build *201012070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/4a86576e7b7a
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #192905 -  Refactor class name in C++ breaks destructor