aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata/src1/PerObject.java
blob: 9452ed28a80aa5138147cbdfe576369f2017db7c (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 PerObject {
	public static void main(String[] args) {
		new PerObject().m();
	}
	
	void m() {
		System.out.println("m()");
	}
}


aspect A perthis(pc()) {
	pointcut pc(): this(PerObject) && execution(* m(..));
	static Object o = new Integer(2);
	before(): get(* *) {
		System.out.println("in " + o.toString());
	}
	
	static {
		o = "hello";
	}
}