Thank you very much Andrew. This was my problem !!
Cordially.
Antoine
> Date: Fri, 25 Apr 2008 08:19:57 -0700 > From: andrew.clement@xxxxxxxxx > To: aspectj-users@xxxxxxxxxxx > Subject: Re: [aspectj-users] Around Advice Generic > > If you want to debug around advice, you need to turn off advice > inlining in the compiler preferences for the project (it is in the > AspectJ Compiler > Possible optimizations section). > > Andy. > > On 25/04/2008, vtitou vergeos <titou2511@xxxxxxxxxxx> wrote: > > > > Thank you for your help, i works very well. I define cleanly the pointcuts. > > The only problem i got is that i can't use Eclipse Debugger for the around > > advice. I can debug before and after advices but i can't enter into around > > advice. > > > > Cordially. > > > > Antoine > > > > > > > > ________________________________ > > From: dean@xxxxxxxxxxxxxxxxxxxxx > > To: aspectj-users@xxxxxxxxxxx > > Subject: Re: [aspectj-users] Around Advice Generic > > Date: Fri, 25 Apr 2008 09:10:34 -0500 > > CC: > > > > Your "methods" pointcut is missing the return type for the method and you > > should have 2 periods for the method argument list: > > > > > > pointcut methods (): execution (public * A.* (..)); > > > > Actually, AspectJ might infer the return type. I always put it in the > > definition. The 2 periods is important! 3 periods should give a compilation > > error. > > > > Also, make sure that "A" is visible without the fully-qualified package > > name, etc. I don't believe that AspectJ will flag an error if no "A" is > > visible, but you will get a warning that no join points were advised. > > > > > > On Apr 25, 2008, at 5:35 AM, vtitou vergeos wrote: > > > > Hi, > > > > I try to use around advice for a general use. I would like to use around for > > all the methods of a class which one does not know in advance the functions. > > For example, for a class A has which has 6 methods and a file aspectJ which > > defines a pointcut A.* for all the methods of A, is it possible to define a > > generic around for example: > > > > pointcut methods (): execution (public A.* (...)); > > > > Object around (): methods () { > > …. > > return proceed (); > > } > > > > knowing that the methods of A have different signatures ! I tested the code > > written above and it does not function, it never passes in the around > > method whereas with a before or an after for the same pointcut, it works > > very well. If somebody already had to deal with this problem, I am waiting > > your answers! > > > > Cordially > > > > Antoine > > > > ________________________________ > > Avec Windows Live Messenger restez en contact avec tous vos amis ! > > Téléchargez Messenger, c'est gratuit > > !_______________________________________________ > > aspectj-users mailing list > > aspectj-users@xxxxxxxxxxx > > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > > > > > > > Dean Wampler, Ph.D. > > > > dean at objectmentor.com > > http://www.objectmentor.com > > See also: > > http://www.aspectprogramming.com AOP advocacy site > > http://aquarium.rubyforge.org AOP for Ruby > > http://www.contract4j.org Design by Contract for Java5 > > > > > > > > > > ________________________________ > > Plus de 15 millions de français utilisent Windows Live Messenger ! > > Téléchargez Messenger, c'est gratuit ! > > _______________________________________________ > > 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
Discutez gratuitement avec vos amis en vidéo ! Téléchargez Messenger, c'est gratuit !
|