[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re : [aspectj-users] Possible bug in declare @field/declare @method for generic aspect
|
Andy,
The error was
[error] Syntax error on token "@", name expected after this token declare
@field : * X.* : @(Ann);
Cheers,
Anwar.
----- Message d'origine ----
De : Andy Clement <andrew.clement@xxxxxxxxx>
À : aspectj-users@xxxxxxxxxxx
Envoyé le : Sam 17 juillet 2010, 17h 49min 24s
Objet : Re: [aspectj-users] Possible bug in declare @field/declare @method for
generic aspect
My initial reaction is that it is a bug. You didn't say what error
you were getting?
Raise a bugzilla for it. We still don't have adequate test coverage
for generic aspects.
cheers
Andy
On 16 July 2010 16:56, Rizal Anwar <anrizal05@xxxxxxxx> wrote:
> Hi,
>
> I'm using AspectJ 1.6.9 and got compilation error when I did the following:
>
> public abstract aspect TestAsp<Ann extends Annotation, X> {
>
> declare @field: * X.* : @(Ann);
> }
>
>
> The following works fine though:
>
>
> public abstract aspect TestAsp<Ann extends Annotation, X> {
> declare @field: @(Ann) * X.* : @Picked;
> pointcut x() : execution( @(Ann) * *.*(..));
> }
>
>
>
> Is it a bug, or I miss something in the declare @field ?
>
> Best regards,
> Anwar.
>
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users