Project: JDT
Bug 44426 Move member to top level: Wrong constructor [refactoring]
Reported: 2003-10-08 09:09:54 | Status: resolved fixed

20031008 - Create the following CU - select the member type in the outliner, choose: 'Move member type to new file' - The code is changed to use a constructor with 'this', howvere, the created type does not have this constructor public class A { class Vector { } public void foo() { Vector v= new Vector(); } } --- -> Vector v= new Vector(this); -- class Vector { /** * */ Vector() { // TODO Auto-generated constructor stub } }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/testFail_nonstatic_0/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test_nonstatic_38/out/Inner.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test_nonstatic_39/out/Inner.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java