[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Annotated method parameters and wildcards
|
- From: "Andy Clement" <andrew.clement@xxxxxxxxx>
- Date: Thu, 15 May 2008 08:12:13 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=caCHUzSjCV9A4G2yv6b4Fy+64H6HyH4qXaCb+p45DYM=; b=Qt/Pc3pQuxo14LJpNYZMPaOpQwRCFli+rx/vVGGyeN2+Bi5AlbCi373rgHAf+dMPQxKAuFEFaz3tm7hCUS0dsDpmLGwxHfsLsnqmNDvgK+p6U4oWq0A16kMmSu8io2iGHqQLGE9vC7JogxEniEcxGnpDbx8Bi7PdCWJvNY7qmyE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=vZ8HZxnSE7SWapAUkm8KnmWMCzOV1PMJrACWY8FZ2b2TCRlG3ZYwFdrvhCvUGdBakynXtZ02ROWSAX2rZ7Y+JmqGEwbqAXfp92CjvylodPMAPEzrrlRV/lHB2vMdkflfKlOTnD9J8OTX+aCGR20dCMYTtGiDtud0g5DoNIGd4ZA=
4th and 5th are actually not allowed I'm afraid. You can't use '..'
in two places - really you should get an error for (4) and the fact
you don't is a regression.
Andy.
2008/5/15 srdan bejakovic <s.bejakovic@xxxxxxxxx>:
> I haven't been able to match an annotated method parameter if it's
> surrounded on both sides by the .. wildcard. In the code below, the first 4
> advice declarations match foo, but the fifth doesn't. Am I doing something
> wrong or is this not allowed or is it a bug? Thanks for your help.
>
> @interface A {};
> public void foo(@A String s) {}
> 1 before(): execution(* *(@A (*))) {}
> 2 before(): execution(* *(.., @A (*))) {}
> 3 before(): execution(* *(@A (*), ..)) {}
> 4 before(): execution(* *(.., String, ..)) {}
> 5 before(): execution(* *(.., @A (*), ..)) {}
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>