summaryrefslogtreecommitdiffstats
path: root/tests/bugs1611/pr336471/Tester.aj
blob: 4603a4d624b634d1be54d153bf8932576a83a65b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
aspect Tester {
	before(): call(* Foo.*(..)) {
		System.out.println(thisEnclosingJoinPointStaticPart);
	}
	public static void main(String[] args) {
		new Foo().run();
	}
}

class Foo {
	int i = 5;
	public void run() {
		bar("abc");
	}
	
	public void bar(String s) {
		System.out.println("hello");
		i = 4;
	}
}

class MyException extends Exception {
	
}