This content has been marked as final.
Show 1 reply
-
1. Re: How do you get the superclass from the Invocation object
kabirkhan Aug 18, 2009 8:05 AM (in response to dermas)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.