inplace rename: static context processing (IDEA-81427)

This commit is contained in:
anna
2012-02-16 18:52:24 +01:00
parent 8468832660
commit edbf9c3db0
4 changed files with 25 additions and 2 deletions
@@ -0,0 +1,7 @@
class X {
public static final String s = "s";
public static void main(String... args) {
String s<caret>1 = s;
}
}
@@ -0,0 +1,7 @@
class X {
public static final String s = "s";
public static void main(String... args) {
String s = X.s;
}
}
@@ -91,6 +91,10 @@ public class RenameLocalTest extends LightRefactoringTestCase {
doTestInplaceRename("r1");
}
public void testRenameInPlaceInStaticContextWithConflictingField() throws Exception {
doTestInplaceRename("s");
}
private void doTestInplaceRename(final String newName) throws Exception {
configureByFile(BASE_PATH + "/" + getTestName(false) + ".java");