Project: JDT
Bug 38464 inline method: compile error after
Reported: 2003-06-05 05:40:26 | Status: resolved fixed

20030604 int i(Object s, int k){ return k == 3? s.hashCode():3; } void f(int p){ int u= i(null, p); } inline i you get int u= p == 3? null.hashCode():3; which does not compile

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/expression_in/TestConditionalExpression.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/expression_out/TestConditionalExpression.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 org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/SourceProvider.java