I downloaded the developer build of AspectJ and this appears to be fixed now.
Does anyone know when the next stable build will be released? I'd rather not release code based on a dev build... ----- Original Message ---- From: Jesse Hepburn <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, March 29, 2007 7:44:49 AM Subject: Re: [aspectj-users] Help with calls to external packages Yes, I'm annotating my target classes, and I get a warning saying that there are no matches. I should have specified that the external target is outside of the eclipse project (in its own project). If I move everything within the same project, then it works with or without annotating the target method. (The annotation variable would be null if no annotation is specified) So, the issue really is, why does it stop working when the target is outside of the project, but only when I add the annotation? ----- Original Message ---- From: Matthew Webster <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, March 29, 2007 1:46:56 AM Subject: Re: [aspectj-users] Help with calls to external packages Jesse, >Can anyone explain either what I'm doing wrong, or why this doesn't work? What do you mean? Does the pointcut not match? You need to annotate your target class(es): public class Test { @myAnnotation public static int aspectTest(int i) { return i; } public static void main (String[] args) { aspectTest(args.length); } } Matthew Webster AOSD Project Java Technology Centre, MP146 IBM United Kingdom Limited Hursley Park, Winchester, SO21 2JN, England Telephone: +44 196 2816139 (external) 246139 (internal) Jesse Hepburn <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 28/03/2007 22:49 Please respond to [email protected] To [email protected] cc Subject [aspectj-users] Help with calls to external packages I'm trying to define a pointcut that intercepts calls from outside of the current package. I've managed to get it to work as follows: pointcut myTest(int x): call(int *.aspectTest(int)) && args(x); before(int x): myTest(x) { System.out.println("Some inspiring message"); } The problem is when I try to add an annotation to the mix: pointcut myTest(int x, myAnnotation a): call(int *.aspectTest(int)) && args(x) && @annotation(a); before(int x, myAnnotation a): myTest(x, a) { System.out.println("this doesn't work"); } Can anyone explain either what I'm doing wrong, or why this doesn't work? ____________________________________________________________________________________ Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games._______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users ____________________________________________________________________________________ No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
