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.
Created attachment 155804 [details] source file "Introduce Function" breaks unformatted code (in attached file I used 2 spaces in order to indent a code block) Scenario: - Open attached file - Select 9th line ("x = x * x;") - Press Alt-Shift-M ("Introduce Function" action) - Press Refactor button ==> broken code
class A { public: A();); // <-- broken line void function(); private: int x; }; void A::function(){ x = x * x; } A::A() { function(); } int main(int argc, char** argv) { return 0; }
fixed, change set: http://hg.netbeans.org/cnd-main/rev/9a58522bcbec
Integrated into 'main-silver', will be available in build *201509020320* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9a58522bcbec User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #254909 "Introduce Function" breaks unformatted code