Project: AspectJ
Bug 384401 NPE when no pointcut in afterthrowing annotation style advice
Reported: 2012-07-05 14:04:53 | Status: resolved fixed

From the mailing list: import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.AfterThrowing; import org.aspectj.lang.annotation.Aspect; @Aspect public class X { // @AfterThrowing(pointcut="execution(* *(..))",throwing = "e") @AfterThrowing(throwing = "e") public void bizLoggerWithException(JoinPoint thisJoinPoint,Throwable e) { // .....// do some stuff } } class BizLoggable {}

Files changed in fix:
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/ValidateAtAspectJAnnotationsVisitor.java tests/bugs171/pr384401/X.java tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java