IDEA-152851 Extract Method Object: incompilable result in case of this and super and anonymous class creation

This commit is contained in:
Egor.Ushakov
2016-03-11 13:08:25 +03:00
parent dd3e6acfc9
commit e09b0fca1e
4 changed files with 33 additions and 0 deletions
@@ -0,0 +1,12 @@
public class XXX extends Base {
int x = 5;
public void con<caret>text() {
int a = this.x;
int b = super.y;
}
}
class Base {
int y = 7;
}
@@ -0,0 +1,16 @@
public class XXX extends Base {
int x = 5;
public void context() {
new Object() {
private void InnerClass() {
int a = XXX.this.x;
int b = XXX.super.y;
}
}.InnerClass();
}
}
class Base {
int y = 7;
}