@target() is dynamically matched based on the runtime type information (http://www.eclipse.org/aspectj/doc/released/adk15notebook/annotations-pointcuts-and-advice.html) . @target(Foo) will match any kind of joinpoint, not just methods, where the targe type has @Traceable. (e.g. field sets/gets too)
For static matching, use something like: execution(* (@Traceable *).*(..)) execution of any method in an @Traceable type. cheers Andy On 25 March 2011 02:16, Stéphane <steph1...@gmail.com> wrote: > Hi All, > > I'm trying to add aspect on all methods tagged by a specific > annotation with the @Around("@target(Traceable)") pinpoint. > > I'm expecting AspectJ to use compilation time or load time implementation. > But it uses a runtime test on ALL the methods, leading to unacceptable > execution time. > > What do I miss ? > > Thanks of your help > _______________________________________________ > aspectj-users mailing list > aspectj-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/aspectj-users > _______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users