AspectJ LTW in eclipse - Pointcut does not work with static method
I have an Aspect class, which defines one point-cut expression as below @Pointcut("execution(* com.vg.pw.tasks.shared.*.executeTasks(..))") public void myTraceCall() {} where the executeTasks() method is static. If the method is made to non-static, the method body is executed on every call of executeTasks() . Why is my pointcut not effective on static methods? I'm using LTW and not spring. I just tried out your pointcut expression and it works on both static and non-static methods just as it should. I used AspectJ weaver 1.8.7. Try adding -showWeaveInfo and -verbose to your aop.xml for debug