Hi Andy,
thanks for the quick reply, my case is a bit more elaborate and I
thought that aspectj does not support matching on annotation
parameters; this is my case: the value property of the Sample
annotation is not String type but Class:

@Retention(RetentionPolicy.RUNTIME)
@interface Sample {
   Class<?> type();
}

so my aspect

aspect SampleAspect {
   declare @field : @Sample(type = Long.class) * * : @Added;
}

yields compile error:

[error] Syntax error on token "class", invalid allowable token in
pointcut or type pattern

is there any way to get around that?

thank you!

zoran
--
Human by day user by night
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to