Project: JDT
Bug 16182 sef: incorrect handling of final flag results in compile error
Reported: 2002-05-16 13:24:07 | Status: verified fixed

20020515+ check the 'encapsulate .... in declaring class' checkbox class Test{ private final int x; Test(int y){ x= y; } } write access is changed to setX(y); which causes a compile error (becuase no setX method is created). the assignemnen must be left as is. and it must create no setters (any setter will result in an error.)

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/SefWorkSpace/SefTests/object_in/TestFinalField.java org.eclipse.jdt.ui.tests.refactoring/resources/SefWorkSpace/SefTests/object_out/TestFinalField.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/SefTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/sef/AccessAnalyzer.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/sef/SelfEncapsulateFieldInputPage.java