, !
method(0) this.method(0), Child$1.this.method(0) Child$1.this.method(int) Problematic.
IDE.
, , , - - .
:
@Override public void method() {
method(0);
Child.this.method(0);
Child.super.method(0);
}
:
@Override public void method() {
this.method(0);
Child.this.method(0);
Child.super.method(0);
}
this.method(0) , this.method(), StackOverflow.
IDE.
, , , , , this.XXX, .
If your goal is to call method(int)on Child, you already know how to do it, you must call it Child.this.method(int), it must be fully qualified due to the resolution of the scope of the namespace.
source
share