org.aspectj/tests/jsrc/AroundAll.java
2002-12-16 18:51:06 +00:00

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);
}
}