Project: JDT
Bug 40478 [convert local] convert local variable to field can declare field as final if method is construtor [refactoring]
Reported: 2003-07-18 12:02:03 | Status: resolved fixed

The "Convert Local Variable to Field" refactoring pops up a dialog box. Part of that dialog box as where to initialise the field. If "Current method" is selected then the option below "Declare field as 'final'" is greyed out. This should not happend if the "Current method" is a constructor because you can have the field as final.

Files changed in fix:
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 org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/PromoteTempToFieldRefactoringContribution.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertLocalToFieldAction.java