mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
IDEA-132210 Debugger: Evaluate fails on this and super references in lambda
This commit is contained in:
+28
@@ -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() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user