Project: JDT
Bug 50139 [refactoring] [inline] inline static method fails to qualify access to field
Reported: 2004-01-16 11:14:59 | Status: resolved fixed

I20040113 1. have these two classes: package inline.constant; public class Main { public static final String ID= "id"; public static String getId() { return ID; } } -- package inline.constant; public class Dependent { public void m() { String s= Main.getId(); } } 2. Inline Main.getId() -> the invocation of Main.getId() in Dependent gets replaced by "ID" instead of the qualified Main.ID.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/bugs_in/Test_50139.java org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/bugs_out/Test_50139.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/InlineMethodTests.java