On Mon 23.Jun'08 at 11:26:04 -0700, Andy Clement wrote:
Thanks for the help but this seems odd that something that can be
resolved statically would require a dynamic check.

What about this:

public class A { public static void main(String []argv) { callit(new
packageOne.P()); callit(new packageTwo.Q()); // where packageTwo.Q
extends packageOne.P }

 public static void callit(P p) { p.m(); }
}

and pointcut:

call(* packageOne..*.*(..))

But here packageOne is a type name and not a package name. IMHO if you
are looking for advise calls whose compile time target methods are
contained within a certain package you should be able to do so w/o a
dynamic check. Also, IMHO package containment shouldn't be considered
transitive, i.e., when one type inherits from another type it does not
take on its package. Does that make sense?
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to