Project: JDT
Bug 38469 inline method: incorrect in innerclasses [refactoring]
Reported: 2003-06-05 05:51:51 | Status: resolved fixed

public int fred(){ return super.hashCode(); } void f(int p){ new Ad(){ void f(){ int u= Ad.this.fred(); } }; } inline fred the temp u is now initialized to a different value - no compile error a different hashCode method is called

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/invalid/TestSuperInThis.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/RefactoringCoreMessages.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/CallInliner.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceAnalyzer.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceProvider.java