Project: AspectJ
Bug 31423 Pointcut adviceexecution() does not work
Reported: 2003-02-09 12:29:28 | Status: resolved fixed

Pointcut adviceexecution() does not seem to pick advice execution join points in beta4. Here is a program that shows the problem: public class Test { public static void main(String[] args) { } } aspect Aspect1 { before() : execution(* Test.*(..)) { System.out.println("Reached " + thisJoinPoint); } } aspect Aspect2 { before() : adviceexecution() && !within(Aspect2) { System.out.println("Reached " + thisJoinPoint); } } F:\aop\bugs\1.1\b4\adviceexecution>ajc -version AspectJ Compiler 1.1beta4 F:\aop\bugs\1.1\b4\adviceexecution>ajc Test.java F:\aop\bugs\1.1\b4\adviceexecution>java Test Reached execution(void Test.main(String[]))

Files changed in fix:
tests/bugs/AdviceExec.java weaver/src/org/aspectj/weaver/patterns/KindedPointcut.java weaver/src/org/aspectj/weaver/patterns/SignaturePattern.java