org.aspectj/tests/bugs/throwsSignature/ExceptionAspect.java
jhugunin 8660cc12bf test and fix for Bugzilla Bug 42539
throw derivative pointcuts not advised
2003-09-04 15:49:08 +00:00

10 lines
312 B
Java

public aspect ExceptionAspect
{
pointcut exceptionThrower() :
execution(public * ExceptionBugTest.*(..) throws Exception+);
declare warning : exceptionThrower() : "throws both";
declare error : execution(public * ExceptionBugTest.*(..) throws Exception) :
"throws Exception";
}