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 228941

Summary: Inplace class rename does not rename constructor
Product: cnd Reporter: Egor Ushakov <gorrus>
Component: NavigationAssignee: Vladimir Voskresensky <vv159170>
Status: NEW ---    
Severity: normal CC: apepin
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Egor Ushakov 2013-04-24 09:29:34 UTC
sample source:
namespace {
    class A {
    public:
        A() {};
    };
}

ctrl+r on class name A brings up inplace rename which does not rename constructor.
Comment 1 Leonid Lenyashin 2013-04-24 09:33:30 UTC
What about ~A? Is it any better?
Very interesting case is copy constructor as it takes A& as reference too.
Comment 2 Egor Ushakov 2013-04-24 09:40:13 UTC
It all works fine if the class is not inside the unnamed namespace
Comment 3 Egor Ushakov 2013-04-25 15:39:39 UTC
Product Version: NetBeans IDE Dev (Build 201304242301)
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
Comment 4 Egor Ushakov 2013-08-02 15:12:31 UTC
If I do regular rename (not inplace) it renames everything as it should