Project: JDT
Bug 220124 [clean up] Make field final replaces volatile with final
Reported: 2008-02-24 21:17:18 | Status: resolved fixed

Build ID: M20071023-1652 Steps To Reproduce: 1. define volatile private field 2. do not write any code that sets the field 3. use clean-up with "Add final modifier to private fields" option 4. volatile keyword is now replaced with final keyword More information: Volatile field may be modified by JNI code, thus I think it's not correct to apply the clean up rule in this case.

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTest.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/VariableDeclarationFix.java