aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features190/efficientTJP/FourA.java
blob: 47694dcbf0ba78e8a061cbe30eec9bf944bd142c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public class FourA {
	public static void main(String []argv) {
		new FourA().run();
	}

	public void run() {
		try {
			System.out.println("run() running");
			throw new IllegalStateException();
		} catch (Throwable t) {
			System.out.println("caught something");
		}
	}

}

aspect X {
	before(Throwable t): handler(Throwable) && args(t) {
		System.out.println(thisEnclosingJoinPointStaticPart.getSignature());
	}
}