aboutsummaryrefslogtreecommitdiffstats
path: root/tests/jsrc/AroundAll.java
blob: fadb9d4c2a448aa7a5891548b20945a3955850cb (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
    }
}