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 - "Encapsulate Fields" doesn't work (1 method is added only)
Summary: "Encapsulate Fields" doesn't work (1 method is added only)
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-11-16 12:35 UTC by soldatov
Modified: 2011-11-17 07:28 UTC (History)
1 user (show)

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 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)