Project: JDT
Bug 49840 refactoring "Convert local variable to field" is buggy for arrays [refactoring]
Reported: 2004-01-12 05:50:45 | Status: resolved fixed

When refactoring the code below to "Convert local variable to field", the type of the variable is not preserved. The type of the field is int, NOT array of int as expected. <my code> void someMethod(){ int someArray[]; } </my code>

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/PromoteTempToField/canPromote/A_test19_in.java org.eclipse.jdt.ui.tests.refactoring/resources/PromoteTempToField/canPromote/A_test19_out.java org.eclipse.jdt.ui.tests.refactoring/resources/PromoteTempToField/canPromote/A_test20_in.java org.eclipse.jdt.ui.tests.refactoring/resources/PromoteTempToField/canPromote/A_test20_out.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/PromoteTempToFieldTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/PromoteTempToFieldRefactoring.java