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

Summary: Refactor class name in C++ breaks destructor
Product: cnd Reporter: mortennobel
Component: EditorAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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