move members: escalate visibility fix in case of overloaded methods (IDEA-81323)

This commit is contained in:
anna
2012-02-14 10:30:01 +01:00
parent 6786b821e8
commit 14710359c5
6 changed files with 29 additions and 7 deletions
@@ -0,0 +1,5 @@
public interface A {
void bar() {
B.foo("");
}
}
@@ -0,0 +1,6 @@
public class B {
static void foo(String s) {}
void foo(int x) {
}
}
@@ -0,0 +1,6 @@
public interface A {
private static void foo(String s) {}
void bar() {
foo("");
}
}
@@ -0,0 +1,4 @@
public class B {
void foo(int x) {
}
}
@@ -114,6 +114,10 @@ public class MoveMembersTest extends MultiFileTestCase {
public void testInnerToInterface() throws Exception {
doTest("A", "B", 0);
}
public void testEscalateVisibility1() throws Exception {
doTest("A", "B", true, VisibilityUtil.ESCALATE_VISIBILITY, 0);
}
@Override
protected String getTestRoot() {