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 222971 - Add support for Changing constructor parameters
Summary: Add support for Changing constructor parameters
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-29 12:01 UTC by Alexander Simon
Modified: 2012-11-30 02:50 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2012-11-29 12:01:53 UTC
Code example:
---------------8<-------------------
class class_a {
public:
    class_a(int a): _a(a){ }
    virtual ~class_a() { }
private: int _a;
};

int main(int argc, char** argv) {
    class_a a_obj2(1);
    return 0;
}
---------------8<-------------------
Steps:
- invoke Refactor->Change Function Parameters on class_a(int a) constructor.
- add new parameter
- refactor
Code becomes uncompilable.
Comment 1 Vladimir Voskresensky 2012-11-29 15:56:25 UTC
http://hg.netbeans.org/cnd-main/rev/b4e2515eecd6
disable change params for constructors and change defect to ENH for support it in Next
Comment 2 Quality Engineering 2012-11-30 02:50:18 UTC
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b4e2515eecd6
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fix up for #222971 - Changing constructor parameters make code uncompilable
- disable change parameters for constructors, we do not handle them correctly yet