Project: JDT
Bug 92519 [refactoring] inline method - result does not compile
Reported: 2005-04-24 14:23:12 | Status: verified fixed

3.1M6 Inline the setter. public class InlineMethodBug { private Object data; InlineMethodBug(Object data){ this.setData(data); } //inline this method, remove decl private void setData(Object bytes) { this.data= bytes; } } you get this (does not compile): public class InlineMethodBug { private Object data; InlineMethodBug(Object data){ InlineMethodBug r = this; r.r.data= data; } }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/receiver_in/TestThisReceiver.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/receiver_out/TestThisReceiver.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/InlineMethodTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceAnalyzer.java