If the target is an instance of B, there is nothing you can do to call A's 
method instead if it is overridden by B. 

The super.sayHello() becomes an invokespecial bytecode instruction rather than 
the normal invokevirtual/invokeinterface, which I guess the jvm takes to mean 
calling the actual method specified rather than the "lowest" which is the 
normal behaviour.

So, from your point of view I don't think there is much that can be done.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250148#4250148

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250148
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to