[
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
|
Hello Adrian, thank you for the help,
i really appreciated your help.
Adrian Colyer wrote:
When extending a *class*, if the superclass has an annotation that
itself has the @Inherited annotation, then that annotation *will* be
inherited. @Inherited is not honoured for interfaces though.
i still have to get familiar with annotation inheritance rules..thanks
for the clarification.
Since you used @target() we'll always be matching against the actual
runtime type of the target object (an AnnotatedServiceImpl) and this
doesn't have the annotation, so no match.
got it.
pointcut callOnAnnotatedInterface() :
call (* (@MemberOfMonitoredSet *)+.*(..))
i'm getting the following error at compile-time:
[iajc] /home/veleno/workspace/ltwtest/src/test/MonitorAspect2.aj:7
[error] Syntax error on token "+
", "(" expected
[iajc] call(* (@MemberOfMonitoredSet *)+.*(..));
[iajc]
[iajc] MessageHolder: (1 error)
[iajc] [error 0]: error at call(* (@MemberOfMonitoredSet *)+.*(..));
[iajc]
[iajc]
/home/veleno/workspace/ltwtest/src/test/MonitorAspect2.aj:7:0::0 Syntax
error on token "+",
"(" expected
Where is the typo error? i can't see it :-(
Thanks,
Valerio