| Priority |
Normal |
| Type | Bug |
| State | Fixed |
| Assignee | Dmitry Jemerov |
| Subsystem | Refactoring |
| Affected versions |
No affected versions
|
| Fixed in |
No fix versions
|
| Fixed in build |
Next build |
| Build |
7656
|
| Fixed in build |
8576
|
| Severity |
0
|
IDEA-42591 |
Pull up static members can break code |
|
|
public class X {}
public class Y extends X {
private static int x = 0;
public static int getX() {
return x;
}
public static void setX(int x) {
Y.x = x;
}
}
public class X {
private static int x = 0;
public static int getX() {
return x;
}
public static void setX(int x) {
Y.x = x; // does not compile, should be X.x = x;
}
}
class Y extends X {}