summaryrefslogtreecommitdiffstats
path: root/tests/bugs/oxford/PR65319.java
blob: 2a00b9acd3db64aa2cb4d8489dff20f31a6fb81c (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
27
28
29
30
class Test
{  
	public static void main(String args[]) {		
		new Test().method();
	}
	public void method() {
		new Test2().method2();
	}
	
	public void method3() {
		new Test2().method3(new Test());
	}
	
	public void method4(Test t) {
		new Test().method4(new Test());
	}
}
class Test2 {
	public void method2() {}
	public void method3(Test t) {}
}
aspect Plain {
	before(Test x):  call(void *.* (..)) && (target(x) || this(x)) {}

	before(Test x):  call(void *.* (..)) && (this(x) || target(x)){}
	
	before(Test x):  call(void *.*(..)) && (this(x) || args(x)) {}
	
	before(Test x):  call(void *.*(..)) && (args(x) || target(x)) {}
}