mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-13 14:13:07 +02:00
12 lines
366 B
Java
12 lines
366 B
Java
![]() |
aspect AroundAll {
|
||
|
pointcut targets(Object o) returns Object:
|
||
|
executions(!abstract !native * *(..)) && instanceof(o) && (within(java..*) || within(javax..*) || within(org.aspectj..*));
|
||
|
|
||
|
around(Object thisObj) returns Object: targets(thisObj) {
|
||
|
if (true) {
|
||
|
throw new RuntimeException("not meant to run");
|
||
|
}
|
||
|
return proceed(thisObj);
|
||
|
}
|
||
|
}
|