summaryrefslogtreecommitdiffstats
path: root/tests/bugs/WideJumps.java
blob: 88aa39fb306fe365ae53ecb7b17fd7ec556b8c4d (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// for need to fill in bug #


public class WideJumps {
    public static void main(String[] args) {
    	new WideJumps().m(true);
    }
    
    public void m(boolean b) {
    	if (b) {
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
			m(1,2,3,4,5,6,7,8,9,0);
    	}	
    }
    
    private void m(int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9) {
    }
}

aspect A  {
    Object around(): call(void m(..)) {
    	System.out.println("around: " + thisJoinPoint);
    	return proceed();
    }
    
	after(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i0):
		call(void m(..)) && args(i1, i2, i3, i4, i5, i6, i7, i8, i9, i0) && if(i1<i2&&i3<i4&&i5<i6&&i7<i8&&i9<i0)
	{
		System.out.println("after: " + thisJoinPoint);
	}
	after(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i0):
		call(void m(..)) && args(i1, i2, i3, i4, i5, i6, i7, i8, i9, i0) && if(i1<i2&&i3<i4&&i5<i6&&i7<i8&&i9<i0)
	{
		System.out.println("after: " + thisJoinPoint);
	}
	after(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i0):
		call(void m(..)) && args(i1, i2, i3, i4, i5, i6, i7, i8, i9, i0) && if(i1<i2&&i3<i4&&i5<i6&&i7<i8&&i9<i0)
	{
		System.out.println("after: " + thisJoinPoint);
	}
}