[aspectj-users] LTW: Weaving a class that extends an Abstract Class

2012-12-07 Thread jeanlouis.pasturel
hello, just a question about methods implemented in Abstract Classes : package mypackage; public abstract class A { public void myMethod() { System .out.println(myMethod in Abstract Class); } } package mypackage; public class B extends A { } package mypackage;

Re: [aspectj-users] LTW: Weaving a class that extends an Abstract Class

2012-12-07 Thread Andy Clement
Yep that is normal behaviour. The joinpoint for the method is only mypackage.A.myMethod() If you wanted to detect myMethod() running on a B, use this: execution(* myMethod()) this(mypackage.B) cheers, Andy On 7 December 2012 07:42, jeanlouis.pastu...@orange.com wrote: hello, just a

Re: [aspectj-users] LTW: Weaving a class that extends an Abstract Class

2012-12-07 Thread Alexander Kriegisch
And if you want to detect myMethod() on A and all its subclasses, overridden or not, use this: execution(* mypackage.A+.myMethod()) -- Alexander Kriegisch Am 07.12.2012 um 22:48 schrieb Andy Clement andrew.clem...@gmail.com: Yep that is normal behaviour. The joinpoint for the method is only