Project: JDT
Bug 168834 [getter setter] should remove final field modifier
Reported: 2006-12-21 04:47:43 | Status: resolved fixed

I20061219-1300 Given: package test; public class E { private final int field; public E() { field= -1; } } 1. Source>Generate Getters and Setters... 2. Check 'field' (why is it not already checked?) 3. OK Is: Dialog is asking me if I want to skip the generation of the setter (due to final modifier of field) Should: What I want is that the action removes the final modifier. There is code which can do that: VariableDeclarationRewrite

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/source/GenerateGettersSettersTest.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddGetterSetterOperation.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/CodeGenerationMessages.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ActionMessages.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java