This question might be about confusion between call and execution joinpoints. Call joinpoints occur at call sites and so they may occur anywhere a method is called (hence a java.io call joinpoint can be in java.lang), but execution joinpoints occur at the method start (and hence java,io execution joinpoints may only occur in java.io). Also execution joinpoints tend to be faster because they can be statically determined. I find that usually execution pointcuts are what you want to use.
On Mon, Jun 23, 2008 at 8:14 AM, Eric Bodden <[EMAIL PROTECTED]> wrote: > Hi. > > 2008/6/23 Raffi Takvor Khatchadourian <[EMAIL PROTECTED]>: >> Hello. I would like to advise all calls to all methods within the >> java.io package and subpackages. I have the following pointcut: >> >> call(* java.io..*.*(..)) >> >> It works, however, it also advised calls to methods within java.lang as >> well. Anyway to fix this? Thanks! > > If I am not mistaken, this should only be the case if the callee > extends a type in java.io..., which is probably what you want. > > Eric > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
