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.
Summary: | Refactoring works wrongly if user modified code | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | Editor | Assignee: | Vladimir Voskresensky <vv159170> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | apepin, ilia, theghostdog |
Priority: | P2 | ||
Version: | 8.0.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | the same a test project |
Description
soldatov
2014-04-11 14:00:18 UTC
Created attachment 150519 [details]
the same a test project
fixed in cnd-main: http://hg.netbeans.org/cnd-main/rev/0dab43b16943 http://hg.netbeans.org/cnd-main/rev/be7f03e812db transplanted to releases http://hg.netbeans.org/releases/rev/c2c6f62ebe03 http://hg.netbeans.org/releases/rev/139b1b10156a Integrated into 'main-silver', will be available in build *201411190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/0dab43b16943 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixed #243770 - Refactoring works wrongly if user modified code *** Bug 244913 has been marked as a duplicate of this bug. *** Ok. I can't reproduce original bug in NetBeans IDE 8.0.2 (Build 201411181905), but I replaced 2-3 steps only and see broken code again. Scenario: - Select A in "int A::foo() const {" line - Press Ctrl-R - Type new name (for example "A1") - Press Refactor button - Press Ctrl-Z (undo). Press Yes. - Select A again - Press Ctrl-R - Type new name (for example "A2") - Press Refactor button ==> broken code again class A2 { public: A2(); private: int foo() const; }; A2::A() { } int A2::foo() const { } int main() { return 0; } But I can't break code in trunk Really "NetBeans IDE 8.0.2 (Build 201411181905)" doesn't have fix. Note: the fix is in repository, but the bits were built on the different revision. We were late for 8.0.2 with committing the fix, that's why 8.0.2 still has this bug. But the fix is already in releases/release801 verified in trunk
>System Info:
Product Version = NetBeans IDE Dev (Build 201502240532) (#d6aa48dbbbfb)
verified in NetBeans IDE 8.0.2 (Build 201502242207) |