aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata/src1/PerCflow.java
blob: 9606c1f75c8e0e968151e8e9b506b2be8f5a6aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class PerCflow {
	public static void main(String[] args) {
		m();
	}
	
	static void m() {
		System.out.println("m()");
	}
}


aspect A percflow(pc()) {
	pointcut pc(): execution(void main(..));
	static Object o = new Integer(2);
	before(): execution(void m()) {
		System.out.println("in " + o.toString());
	}
	
	static {
		o = "hello";
	}
}