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 :
> Yep that is normal behaviour. The joinpoint for the method is only
> mypackage.A.myMethod(
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, wrote:
> hello,
> just a question about methods implement
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;
publ