Thereis no different behaviour. We have to define each method so that Class.getMethod(methodName, args) returns a Method referencing this class rather than the parent class.
We need to implement ITargetObject again because the MethodDefinitionAttributes only locates attributes on interfaces explicitly defined by the intercepted class (not the interfaces defined by its parent class or classes).
| |
| |