Project: JDT
Bug 213488 [inline] Inlining outer method into anonymous class breaks control flow.
Reported: 2007-12-19 12:01:53 | Status: resolved fixed

Build ID: M20070921-1145 Steps To Reproduce: Inlining method foo() should introduce braces around the else clause, but wrongly doesn't. ----------------------- Bug.java ------------------ class Bug { Object field=new Object(){ { if(0<hashCode()) ; else foo(); } }; void foo(){ toString(); toString(); } }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/simple_in/TestFieldInitializerAnonymous.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/simple_out/TestFieldInitializerAnonymous.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/CallInliner.java