Project: JDT
Bug 333803 [move member type] Move Type to New File creates compile error with parametrized outer type
Reported: 2011-01-08 14:22:21 | Status: resolved fixed

HEAD The 'Move Type to New File' refactoring creates a compile error when the member type contains an array access expression: public class Outer { private final Object[] fSet= new Object[1]; class Inner { //Move Type to New File void foo() { System.out.println(fSet[0]); // broken // System.out.println(fSet); // OK } } }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test_nonstatic_49/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test_nonstatic_49/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test_nonstatic_49/out/B.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/MoveInnerToTopLevelTests.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/Bindings.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java