summaryrefslogtreecommitdiffstats
path: root/tests/other-systems/util/AroundAll.java
blob: 2b57c39fb5bbcda5e59877550ed6d41689143efb (plain)
1
2
3
4
5
6
7
8
9
10
11
aspect AroundAll {
    pointcut targets(Object o):
	execution(!abstract !native * *(..)) && this(o) && Pcds.withinMe();

    Object around(Object thisObj): targets(thisObj) {
	    if (true) {
		throw new RuntimeException("not meant to run");
	    } 
	    return proceed(thisObj);
    }
}