IDEA-132210 Debugger: Evaluate fails on this and super references in lambda

This commit is contained in:
Egor.Ushakov
2016-02-24 15:33:05 +03:00
parent 0078c22016
commit eed9e7e7fb
3 changed files with 113 additions and 3 deletions
@@ -0,0 +1,28 @@
public class Sample extends Base {
public static void main(String[] args) {
new Sample().foo();
}
void foo() {
List<Integer> list = Arrays.asList(1, 2, 3, 4, 5);
list.for<caret>Each(i -> {
new Runnable() {
int xxx = 0;
@Override
public void run() {
this.xxx = 5; // this stays the same
}
}.run();
this.a++; // have to be qualified
super.foo(); // have to be qualified
a++;
foo();
});
System.out.println(a);
}
}
class Base {
void foo() {
}
}