mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-156280 Incorrect evaluation inside anonymous class
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
public class AnonField {
|
||||
private String xxx;
|
||||
|
||||
public static void main(String[] args) {
|
||||
new AnonField().foo();
|
||||
}
|
||||
void foo() {
|
||||
String xxx = "local";
|
||||
new AnonField() {
|
||||
@Override
|
||||
public void foo() {
|
||||
System.out.println(<ref>xxx);
|
||||
}
|
||||
}.foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user