Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] AspectJ and packages

Has anyone an idea why pointcuts like

	execution(* ch.adnovum.project.MyClass.method(..))

work but

	execution(* MyClass.method(..))

doesn't work?? (as long as the aspect is not in the same package or does import ch.adnovum.project.*)

I also tried * *.MyClass.method(..) but doesn't work either.

Is there an easy way to select a method of a class that is not in the same package but does away with the whole package path in the pointcut??

Regards,
Simon


Back to the top