mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
make class static: leave super expressions unprocessed when they do not correspond to outer class (IDEA-72740)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
public class m {
|
||||
void aa(){}
|
||||
}
|
||||
|
||||
class Outer extends m{
|
||||
class I<caret>nner extends Super {
|
||||
void bar(){
|
||||
|
||||
}
|
||||
void foo() {
|
||||
super.foo();
|
||||
this.bar();
|
||||
Outer.super.aa();
|
||||
Outer.this.aa();
|
||||
}
|
||||
}
|
||||
}
|
||||
class Super {
|
||||
void foo() {}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
public class m {
|
||||
void aa(){}
|
||||
}
|
||||
|
||||
class Outer extends m{
|
||||
static class Inner extends Super {
|
||||
private Outer anObject;
|
||||
|
||||
public Inner(Outer anObject) {
|
||||
this.anObject = anObject;
|
||||
}
|
||||
|
||||
void bar(){
|
||||
|
||||
}
|
||||
void foo() {
|
||||
super.foo();
|
||||
this.bar();
|
||||
anObject.aa();
|
||||
anObject.aa();
|
||||
}
|
||||
}
|
||||
}
|
||||
class Super {
|
||||
void foo() {}
|
||||
}
|
||||
Reference in New Issue
Block a user