Project: JDT
Bug 93689 Inlining static field has illegal result.
Reported: 2005-05-04 13:45:14 | Status: verified fixed

--------- BEFORE --------------- package ibsn.j2ee.utils; import org.apache.log4j.Logger; import static org.apache.log4j.Logger.*; public final class ExceptionHdlr { private static final Logger logger_ = getLogger( ExceptionHdlr.class ); public static void handleException(final Throwable t) { handleException(logger_,t); } public static void handleException(final Logger loggerObj, final Throwable t) { loggerObj.error("",t); } } ------------ AFTER -------------- package ibsn.j2ee.utils; import org.apache.log4j.Logger; import static org.apache.log4j.Logger.*; public final class ExceptionHdlr { public static void handleException(final Throwable t) { handleException(getLogger,t); } // COMPILE ERROR! public static void handleException(final Logger loggerObj, final Throwable t) { loggerObj.error("",t); } }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineConstant/canInline/test26/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineConstant/canInline/test26/out/A.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/InlineConstantTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineConstantRefactoring.java