blob: e2772b4d14685a43599a772c4a25c354197a7f78 (
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
|
import java.util.List;
import java.util.ArrayList;
public class C<E extends Number> {
// void m1(List<Integer> e){}
// void m2(List<? extends Number> e){}
// void m3(List<Number> e){}
// void m4(List<?> e){}
// void m5(List<E> e){}
// void m6(List<? extends E> e){}
// void m7(List<? extends List<? extends E>> e){}
// void m8(List e){}
// void m9(E e){}
}
class A1{}
class B1 extends A1{}
class C1 extends B1{}
class D1 extends C1{}
class D2<E2 extends C1>{
void m5(List<E2> e){}
}
aspect AC{
//void around(): execution(* C.m1(..)) && args(List<Integer>){} //: Should
match (it does)
//void around(): execution(* C.m1(..)) && args(ArrayList<Integer>){}//: Should
runtime check (it does!)
//void around(): execution(* C.m1(..)) && args(List<Number>){}//: Should not
match (it does not!)
//void around(): execution(* C.m1(..)) && args(ArrayList<Number>){}//: Should
not match (it does not)
//void around(): execution(* C.m1(..)) && args(List<? extends Number>){}//:
Should match (it does)
//void around(): execution(* C.m1(..)) && args(ArrayList<? extends
Number>){}//: Should runtime check (it does!)
//void around(): execution(* C.m1(..)) && args(List){}//: Should match (it
does)
//void around(): execution(* C.m1(..)) && args(ArrayList){}//: Should runtime
check (it does not match!)ERROR
//void around(): execution(* C.m1(..)) && args(List<?>){}//: Should match (it
does)
//void around(): execution(* C.m1(..)) && args(ArrayList<?>){}//: Should
runtime check (it does not match!)
//void around(): execution(* C.m1(..)) && args(ArrayList<String>){}//: Should
not match (it does not match!)
//void around(): execution(* C.m2(..)) && args(List<Integer>){} //: Should not
match (but it does) ERROR
//void around(): execution(* C.m2(..)) && args(ArrayList<Integer>){}//: Should
not match (but it does!) ERROR
//void around(): execution(* C.m2(..)) && args(List<Number>){} //: Should not
match (but it does) ERROR
//void around(): execution(* C.m2(..)) && args(ArrayList<Number>){}//: Should
not runtime check (but it does!) ERROR
//void around(): execution(* C.m2(..)) && args(List<? extends Number>){}//:
Should match (it does)
//void around(): execution(* C.m2(..)) && args(ArrayList<? extends
Number>){}//: Should runtime check (it does!)
//void around(): execution(* C.m2(..)) && args(List){}//: Should match (it
does)
//void around(): execution(* C.m2(..)) && args(ArrayList){}//: Should runtime
check (it does not match!) ERROR
//void around(): execution(* C.m2(..)) && args(List<?>){}//: Should match (it
does)
//void around(): execution(* C.m2(..)) && args(ArrayList<?>){}//: Should
runtime check (it does!)
//void around(): execution(* C.m2(..)) && args(ArrayList<String>){}//: Should
not match (it does not match!)
// void around(): execution(* C.m3(..)) && args(List<Integer>){} //:
Should not match (it does not)
// void around(): execution(* C.m3(..)) && args(ArrayList<Integer>){}//:
Should not match (it does not)
// void around(): execution(* C.m3(..)) && args(List<Number>){}//: Should
match (it does)
// void around(): execution(* C.m3(..)) && args(ArrayList<Number>){}//:
Should runtime match (it does)
// void around(): execution(* C.m3(..)) && args(List<? extends
Number>){}//: Should match (it does)
// void around(): execution(* C.m3(..)) && args(ArrayList<? extends
Number>){}//: Should runtime check (it does!)
// void around(): execution(* C.m3(..)) && args(List){}//: Should match
(it does)
// void around(): execution(* C.m3(..)) && args(ArrayList){}//: Should
runtime check (it does not match!) ERROR
// void around(): execution(* C.m3(..)) && args(List<?>){}//: Should
match (it does)
// void around(): execution(* C.m3(..)) && args(ArrayList<?>){}//: Should
runtime check (it does!)
// void around(): execution(* C.m3(..)) && args(ArrayList<String>){}//:
Should not match (it does not match!)
// void around(): execution(* C.m4(..)) && args(List<Integer>){} //:
Should not match (but it does) ERROR
// void around(): execution(* C.m4(..)) && args(ArrayList<Integer>){}//:
Should not match (but it does) ERROR
// void around(): execution(* C.m4(..)) && args(List<Number>){}//: Should
not match (but it does) ERROR
// void around(): execution(* C.m4(..)) && args(ArrayList<Number>){}//:
Should not match (but it does) ERROR
// void around(): execution(* C.m4(..)) && args(List<? extends
Number>){}//: Should not match (but it does) ERROR
// void around(): execution(* C.m4(..)) && args(ArrayList<? extends
Number>){}//: Should not match (but it does!) ERROR
// void around(): execution(* C.m4(..)) && args(List){}//: Should match
(it does)
// void around(): execution(* C.m4(..)) && args(ArrayList){}//: Should
runtime check (it does!)
// void around(): execution(* C.m4(..)) && args(List<?>){}//: Should
match (it does)
// void around(): execution(* C.m4(..)) && args(ArrayList<?>){}//: Should
runtime check (it does!)
// void around(): execution(* C.m4(..)) && args(ArrayList<String>){}//:
Should not match (it does not match!)
// void around(): execution(* C.m5(..)) && args(List<Integer>){} //:
Should not match (but it does) ERROR
// void around(): execution(* C.m5(..)) && args(ArrayList<Integer>){}//:
Should not match (but it does!) ERROR
// void around(): execution(* C.m5(..)) && args(List<Number>){}//: Should
not match (but it does!) ERROR
// void around(): execution(* C.m5(..)) && args(ArrayList<Number>){}//:
Should not match (it does) ERROR
// void around(): execution(* C.m5(..)) && args(List<? extends
Number>){}//: Should match (it does)
// void around(): execution(* C.m5(..)) && args(ArrayList<? extends
Number>){}//: Should runtime check (it does!)
// void around(): execution(* C.m5(..)) && args(List){}//: Should match
(it does)
// void around(): execution(* C.m5(..)) && args(ArrayList){}//: Should
runtime check (it does not match!) ERROR
// void around(): execution(* C.m5(..)) && args(List<?>){}//: Should
match (it does)
// void around(): execution(* C.m5(..)) && args(ArrayList<?>){}//: Should
runtime check (it does not match!)
// void around(): execution(* C.m5(..)) && args(ArrayList<String>){}//:
Should not match (it does not match!)
// void around(): execution(* D2.m5(..)) && args(List<D1>){} //: Should
not match (but it does) ERROR
// void around(): execution(* D2.m5(..)) && args(ArrayList<D1>){}//:
Should not match (but it does!) ERROR
// void around(): execution(* D2.m5(..)) && args(List<C1>){}//: Should
not match (but it does!) ERROR
// void around(): execution(* D2.m5(..)) && args(ArrayList<C1>){}//:
Should not match (it does) ERROR
// void around(): execution(* D2.m5(..)) && args(List<? extends B1>){}//:
Should match (it does)
// void around(): execution(* D2.m5(..)) && args(ArrayList<? extends
B1>){}//: Should runtime check (it does!)
// void around(): execution(* D2.m5(..)) && args(List<? extends C1>){}//:
Should match (it does)
// void around(): execution(* D2.m5(..)) && args(ArrayList<? extends
C1>){}//: Should runtime check (it does!)
// void around(): execution(* D2.m5(..)) && args(List){}//: Should match
(it does)
// void around(): execution(* D2.m5(..)) && args(ArrayList){}//: Should
runtime check (it does not match!) ERROR
// void around(): execution(* D2.m5(..)) && args(List<?>){}//: Should
match (it does)
// void around(): execution(* D2.m5(..)) && args(ArrayList<?>){}//:
Should runtime check (it does not match!)
// void around(): execution(* D2.m5(..)) && args(ArrayList<String>){}//:
Should not match (it does not match!)
// void around(): execution(* C.m6(..)) && args(List<Integer>){} //:
Should not match (but it does) ERROR
// void around(): execution(* C.m6(..)) && args(ArrayList<Integer>){}//:
Should not match (but it does!) ERROR
// void around(): execution(* C.m6(..)) && args(List<Number>){}//: Should
not match (but it does!) ERROR
// void around(): execution(* C.m6(..)) && args(ArrayList<Number>){}//:
Should not match (it does) ERROR
// void around(): execution(* C.m6(..)) && args(List<? extends
Number>){}//: Should match (it does)
// void around(): execution(* C.m6(..)) && args(ArrayList<? extends
Number>){}//: Should runtime check (it does!)
// void around(): execution(* C.m6(..)) && args(List){}//: Should match
(it does)
// void around(): execution(* C.m6(..)) && args(ArrayList){}//: Should
runtime check (it does not match!)
// void around(): execution(* C.m6(..)) && args(List<?>){}//: Should
match (it does)
// void around(): execution(* C.m6(..)) && args(ArrayList<?>){}//: Should
runtime check (it does not match!)
// void around(): execution(* C.m6(..)) && args(ArrayList<String>){}//:
Should not match (it does not match!)
// void around(): execution(* C.m7(..)) && args(List<List<Integer>>){}
//: Should not match (but it does) ERROR
// void around(): execution(* C.m7(..)) &&
args(ArrayList<List<Integer>>){}//: Should not match (but it does!) ERROR
// void around(): execution(* C.m7(..)) && args(List<List<Number>>){}//:
Should not match (but it does!) ERROR
// void around(): execution(* C.m7(..)) &&
args(ArrayList<List<Number>>){}//: Should not match (but it does) ERROR
// void around(): execution(* C.m7(..)) && args(List<? extends
List<Number>>){}//: Should not match (but it does) ERROR
// void around(): execution(* C.m7(..)) && args(ArrayList< ? extends
List<Number>>){}//: Should not match (but it does!) ERROR
// void around(): execution(* C.m7(..)) && args(List< ? extends List<?
extends Number>>){}//: Should match (it does!)
// void around(): execution(* C.m7(..)) && args(ArrayList< ? extends
List<? extends Number>>){}//: Should match (it does!)
// void around(): execution(* C.m7(..)) && args(List){}//: Should match
(it does)
// void around(): execution(* C.m7(..)) && args(ArrayList){}//: Should
runtime check (it does not match!)
// void around(): execution(* C.m7(..)) && args(List<?>){}//: Should
match (it does)
// void around(): execution(* C.m7(..)) && args(ArrayList<?>){}//: Should
runtime check (it does!)
// void around(): execution(* C.m7(..)) &&
args(ArrayList<List<String>>){}//: Should not match (it does not match!)
// void around(): execution(* C.m8(..)) && args(List<Integer>){} //:
Should match with unchecked conversion (it does)
// void around(): execution(* C.m8(..)) && args(ArrayList<Integer>){}//:
Should runtime check with unchecked conversion (it does!)
// void around(): execution(* C.m8(..)) && args(List<Number>){}//: Should
match with unchecked conversion (it does!)
// void around(): execution(* C.m8(..)) && args(ArrayList<Number>){}//:
Should runtime check with unchecked conversion (it does)
// void around(): execution(* C.m8(..)) && args(List<? extends
Number>){}//: Should match with unchecked conversion (it does!)
// void around(): execution(* C.m8(..)) && args(ArrayList<? extends
Number>){}//: Should runtime check with unchecked conversion (it does)
// void around(): execution(* C.m8(..)) && args(List){}//: Should match
(it does)
// void around(): execution(* C.m8(..)) && args(ArrayList){}//: Should
runtime check (it does!)
// void around(): execution(* C.m8(..)) && args(List<?>){}//: Should
match (it does)
// void around(): execution(* C.m8(..)) && args(ArrayList<?>){}//: Should
runtime check (it does!)
// void around(): execution(* C.m8(..)) && args(ArrayList<String>){}//:
Should not match (it does not match!)
// void around(): execution(* C.m9(..)) && args(List<Integer>){} //:
Should not match (but it does) ERROR
// void around(): execution(* C.m9(..)) && args(ArrayList<Integer>){}//:
Should not match (it does not match!)
// void around(): execution(* C.m9(..)) && args(Number){}//: Should match
(it does!)
// void around(): execution(* C.m9(..)) && args(Integer){}//: Should
runtime check (it does)
// void around(): execution(* C.m9(..)) && args(List<? extends
Number>){}//: Should not match (but it does) ERROR
// void around(): execution(* C.m9(..)) && args(ArrayList<? extends
Number>){}//: Should not match (it does not match!)
// void around(): execution(* C.m9(..)) && args(List){}//: Should not
match (but it does) ERROR
// void around(): execution(* C.m9(..)) && args(ArrayList){}//: Should
not match (it does not match!)
// void around(): execution(* C.m9(..)) && args(List<?>){}//: Should not
match (but it does) ERROR
// void around(): execution(* C.m9(..)) && args(ArrayList<?>){}//: Should
not match (it does not match!)
// void around(): execution(* C.m9(..)) && args(String){}//: Should not
match (it does not match!)
}
|