I have base class Foo with method spam and class Bar which overrides spam. I need to call spam of base class in method of some callback object which is defined in-place:
public class Foo { public void spam() { // ... } } public class Bar extends Foo { @Override public void spam() { objectWhichRequireCallback(new Callback { @Override public void onCallback() { super.spam(); } }); } } This code is not working because super is related to Callback, not Bar class. Is it possible to call super method from object defined in-place?