How to call the callback function of outter class without using a helper variable like i did in my example below.
Please note that the solution described in Calling outer class function from inner class probably won't work.
public abstract class Job {
public void callback();
}
public abstract class ExtendedJob extends Job {
protected void handleResult() {
// workaround for accessing the outter class
final ExtendedJob outter = this;
new ExtendedJob {
public void callback() {
// can i do the same without the outter variable?
outter.callback();
}
}
}
}