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 205191

Summary: "Encapsulate Fields" doesn't work (1 method is added only)
Product: cnd Reporter: soldatov <soldatov>
Component: -- Other --Assignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED FIXED    
Severity: normal CC: apepin
Priority: P2 Keywords: REGRESSION
Version: 7.1   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2011-11-16 12:35:21 UTC
Scenario:
- Create C++ application with such code

class A {
public:
    int i;
    int j;
};

int main(int argc, char** argv) {

    return 0;
}

- Move cursor on A and call context menu
- Select Refactor|Encapsulate Fields menu item
- Select GetI, SetI, GetJ, SetJ and press Refactor button
==> 1 method is added only
Comment 1 Vladimir Voskresensky 2011-11-16 15:24:32 UTC
http://hg.netbeans.org/cnd-main/rev/a24d21667696
Comment 2 Quality Engineering 2011-11-17 07:28:53 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/a24d21667696
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fix regression #205191 - "Encapsulate Fields" doesn't work (1 method is added only)