mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 05:57:44 +02:00
8660cc12bf
throw derivative pointcuts not advised
10 lines
312 B
Java
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";
|
|
} |