Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] LTW and pointcut not matched with @target and inheritance

There wasn't a typo - this one *is* my fault : the parser was failing
over on a type pattern of the form (......)+ . I'm just running the
suite on a fix and then I'll check it in and the next published dev.
build should work as advertised.

When you take away the + the pointcut will not match as you say. This
is because it nows reads "a call to any method defined in a type with
the @MemberOfMonitoredSet annotation". But the interface with the
annotation doesn't define any operations! When you add the "+' you
also match operations defined on any subtype of a type with the
annotation, which is what you want in this case.

On 12/08/05, Valerio Schiavoni <ervalerio@xxxxxxxxxx> wrote:
> Valerio Schiavoni ha scritto:
> 
> >> pointcut callOnAnnotatedInterface() :
> >>  call (* (@MemberOfMonitoredSet *)+.*(..))
> >>
> >
> with this modiciation (without the '+' specifier):
> 
> pointcut callOnAnnotatedInterface() :
>  call (* (@MemberOfMonitoredSet *).*(..))
> 
> i don't get compile errors, but the advice is not executed.
> 
> 
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 


-- 
-- Adrian
adrian.colyer@xxxxxxxxx


Back to the top