[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Matching declared annotations by annotation parameters
|
- From: Zoran Regvart <zregvart+aspectj@xxxxxxxxx>
- Date: Tue, 6 Sep 2011 11:13:29 +0200
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=C/KuRX5el0D9Bqz6LKdF1hmRonIdcis5JFPSW+DumL0=; b=TuT3a72SfeZeQLdAThfPFEjBgZ6A4OkgUDfoxVPAwWbRMWEuUsbRECJS1JMMq4kb3s 3yO/6CC5/2giFjLWGyvhUVpuu4ytmKl0+7cPer9vrrHsn34DnVbkB8YRnSBLW99VmYP4 oFmII6QMXJpzMsAuzZHlqfexRzxFFh/4Wfdgc=
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