Project: JDT
Bug 185330 [introduce parameter object] does not 'this' qualified field accesses in setter
Reported: 2007-05-03 09:12:53 | Status: verified fixed

I20070502-0010 Given: package test; public class E01 { public E01(int number) {} } 1. Select constructor E01 2. Introduce parameter object 3. Check 'generate setters', accept other defaults Is: public void setNumber(int number) { number = number; } Should: public void setNumber(int number) { this.number = number; } Major since with the default settings this only leads to a compiler warning and not an error.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceParameterObject/testDelegateCreation/out/TestDelegateCreation.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ParameterObjectFactory.java