org.aspectj/tests/jsrc/AroundAll.java

12 lines
366 B
Java
Raw Normal View History

2002-12-16 19:51:06 +01:00
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);
}
}