aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/LocalVarTableGen.aj
blob: a281dbb11510faaa1c8b0aa2d7c7f9609a352f32 (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
26
public aspect LocalVarTableGen {
	
	int x = 5;
	
	public String foo(String s) {
		String myLocal = "" + x + s;
		return myLocal;
	}
	
	public String bar(String s) {
		String myLocal = "" + x + s;
		return myLocal;		
	}
	
	before() : execution(* foo(..)) {
		System.out.println("before foo");
	}
	
	after(String in) returning(String out) :
		execution(* bar(..)) && args(in) 
	{
		System.out.println("after bar");
	}
	
	
}