Is it possible to override a method of the super class of the extended class?
Here is the example:
public class ApplicationModuleImpl {
protected void prepareSession(oracle.jbo.Session p1) {
// Preparing the session
}
}
public class BaseModuleImpl extends ApplicationModuleImpl {
}
Class BaseModuleImpl doesn't override any methods of ApplicationModuleImpl, then I have:
public class MyClass extends BaseModuleImpl {
protected void prepareSession(Session session) {
super.prepareSession(session);
}
}
Does this really override the method?
EDIT:
I am using ADF with faces in jdeveloper and I am extending as you can see the applicationModule class and my class extends the extended class. and the method prepareSession must be called if it is overrided, it it is not being called at all.
Why it isn't being called then, at its loading time, since it's extending ADF ApplicationModuleImpl ??