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 108007 [details] refactor this java file I've attached a case to reproduce the problems. To reproduce do "move inner to outer" of class StartAsNested. There are syntax errors and one case where incorrect code is prduced. These problems show up: - Bad code is produced. StartAsNested.java:35 should be public MyC1(int i) { super(i); <<<<<<<<<<<<< missing in refactored result } - TestCase.java:16 Should be this.changeNotify... - StartAsNested.java:23 Actually, I don't mind this; then I can decide to either make outer final or change the code to: this.outer.changeNotify.change(); - StartAsNested.java:30 StartAsNested.java:57 C1 c = outer.new MyC1(1); Product Version: NetBeans IDE 7.0 (Build 201104080000) Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\erra\.netbeans\7.0
Ralph, please take a look at this one, thanks.
I added a dependency to #197097 for the missing super() call.
Changeset: a10666d51e59 Author: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Date: 2011-08-02 11:32 Message: Issue #198186 - "Move inner to outer level" bad code and syntax errors
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/a10666d51e59 User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: Issue #198186 - "Move inner to outer level" bad code and syntax errors