Project: JDT
Bug 26096 inline method: incorrectly inling method that refers to 'this'
Reported: 2002-11-13 08:48:15 | Status: resolved fixed

class A{ void m(C c){ c.m(this); } } class C{ void m(A a){ //method } } class Client{ void f(){ A a= null; C c= null; a.m(c); } } inlining A.m results in (in Client.f()): c.m(this); which does not compile

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/receiver_in/TestThisExpression.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/receiver_out/TestThisExpression.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