Re: [aspectwerkz-user] Weaving on polymorphic methods
Alexandre Vasseur <[email protected]> Fri, 27 May 2005 10:57:36 +0200
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
If you don't weave your super class, and if your pointcut is of kind "execution" and not "call", then indeed you cannot expect the aspect to be triggered when a subclass method override executes. What is exactly the question ? Alex On 5/25/05, Bygrave, Graham BGI UK <[email protected]> wrote: > Hi, > > If I don't weave my superclasses, then in cases where my subclasses don't override methods, can I expect calls to trigger my aspect methods? Surely not, as the whole point of polymorphism is that I don't need to care what type of object I'm dealing with, I should just have the aspect method triggered regardless of whether the method was implemented in the superclass or overriden in the subclass. > > Thanks, > Graham. > >