Re: [aspectwerkz-user] pointcut on inherited method

Jonas Bonér <[email protected]> Mon, 13 Feb 2006 13:49:57 -0800
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
you want to use runtime type and not static matching
try:
execution(* *.C(..)) && target(B)


On 2/13/06, [email protected] <[email protected]> wrote:
>
> Could I specify the inherited method without specifying the parent class in
> a pointcut?
> For example, I have Class B extended from Class A and inherited method C.
> The pointcut  "execution(* B.C(..)) doesn't work, but the pointcut
> "execution(* A.C(..)) works OK.
>
> Regards,
> Man
>
>


--
Jonas Bonér
Terracotta, Inc.

http://jonasboner.com
http://www.terracottatech.com