blob: 0664d78a123a0aded0a261f74ad83dfabd284284 (
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
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
|
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
<suite>
<ajc-test dir="bugs163/pr259279" title="ordering repetitive method">
<compile files="SomeServiceImpl.java SomeInterface.java Main.java GenericService.java GenericServiceImpl.java Aspect.java" options="-1.5"/>
<run class="Main"/>
</ajc-test>
<ajc-test dir="bugs163/pr259279" title="ordering repetitive method - 2">
<compile files="GenericServiceImpl.java SomeServiceImpl.java SomeInterface.java Main.java GenericService.java Aspect.java" options="-1.5"/>
<run class="Main"/>
</ajc-test>
<ajc-test dir="bugs163/pr258653" title="getNode">
<compile files="staticinit.java" options="-1.5 -emacssym"/>
</ajc-test>
<ajc-test dir="bugs163/pr252722" title="extending AbstractSecurityInterceptor">
<compile files="A.java" options="-1.5"/>
<run class="A"/>
</ajc-test>
<ajc-test dir="bugs163/pr252722" title="extending AbstractSecurityInterceptor - 2">
<compile files="ACode.java" options="-1.5"/>
<run class="ACode"/>
</ajc-test>
<ajc-test dir="bugs163/pr252722" title="extending AbstractSecurityInterceptor - 3">
<compile files="B.java" options="-1.5"/>
<run class="B"/>
</ajc-test>
<ajc-test dir="bugs163/pr252722" title="extending AbstractSecurityInterceptor - 4">
<compile files="BCode.java" options="-1.5"/>
<run class="BCode"/>
</ajc-test>
<ajc-test dir="bugs163/pr154427" title="getMethod returning null">
<compile files="AuthorizationImpl.java Authorization.java AuthorizationAdmin.java CallAndMethodSignatureAspect.java CallTest.java" options=""/>
<run class="CallTest">
<stdout>
<line text="public abstract boolean Authorization.mayPerform(java.lang.String,java.lang.String)"/>
<line text="public abstract interface boolean AuthorizationAdmin.mayPerform(java.lang.String, java.lang.String)"/>
<line text="mayPerform() executing"/>
<line text="public abstract boolean AuthorizationAdmin.mayPerform2(java.lang.String,java.lang.String)"/>
<line text="public abstract interface boolean AuthorizationAdmin.mayPerform2(java.lang.String, java.lang.String)"/>
<line text="mayPerform2() executing"/>
<line text="public abstract boolean Authorization.mayPerform(java.lang.String,java.lang.String)"/>
<line text="public abstract interface boolean Authorization.mayPerform(java.lang.String, java.lang.String)"/>
<line text="mayPerform() executing"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr128664" title="inherited annotations">
<compile files="Bug.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text=""/>
</compile>
<run class="Bug"/>
</ajc-test>
<ajc-test dir="bugs163/pr128664" title="inherited annotations - 2">
<compile files="Bug2.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text=""/>
</compile>
<run class="Bug2"/>
</ajc-test>
<ajc-test dir="bugs163/pr257754" title="decp anno style">
<compile files="Main.java" options="-1.5"/>
<run class="example.Main">
<stdout>
<line text="In doFoo class example.DefaultFoo"/>
<line text="Bar"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr257754" title="decp anno style - 2">
<compile files="Main2.java Foo.java DefaultFoo.java" options="-1.5">
<message kind="error" text="but it is of incorrect visibility"/>
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr219419" title="incorrect arg ordering anno style">
<compile files="Code.java" options="-1.5"/>
<run class="Code">
<stdout>
<line text="Catching mess. Argument was ewwww"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr219419" title="incorrect arg ordering anno style - 2">
<compile files="Code2.java" options="-1.5"/>
<run class="Code2">
<stdout>
<line text="Catching mess. Argument was ewwww"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr219419" title="incorrect arg ordering anno style - 3">
<compile files="Code3.java" options="-1.5"/>
<run class="Code3">
<stdout>
<line text="afterReturningCreateBean advice input='s' ret=37"/>
<line text="Code3.main returned from call to createBean 37"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr219419" title="incorrect arg ordering anno style - 4">
<compile files="Code4.java" options="-1.5"/>
<run class="Code4">
<stdout>
<line text="afterReturningCreateBean advice input='s' ret=37"/>
<line text="Code4.main returned from call to createBean 37"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr219419" title="incorrect arg ordering anno style - 5">
<compile files="Code5.java" options="-1.5"/>
<run class="Code5">
<stdout>
<line text="afterReturningCreateBean advice input='s' ret=37"/>
<line text="Code5.main returned from call to createBean 37"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr256458" title="poor ataj if message - 1">
<compile files="Code.java" options="-1.5">
<message kind="error" text="in annotation style, if(...) pointcuts cannot contain code"/>
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr256458" title="poor ataj if message - 2">
<compile files="Code2.java" options="-1.5">
<message kind="error" text="in annotation style, if(...) pointcuts cannot contain code"/>
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr256937" title="fully qualified return type">
<compile files="Ship.java ShipAccessor.java" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="bugs163/pr213751" title="mixed styles">
<compile files="Foo.java" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="bugs163/pr249216" title="handles - escaped square brackets">
<compile files="Handles.java" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="bugs163/pr171042" title="itd on anonymous inner">
<compile files="TestClass.java Executable.java RunnableAspect.java" options=""/>
</ajc-test>
<ajc-test dir="bugs163/pr254207" title="ordering issue">
<compile files="Abstract.java Concrete.java" options="-1.5 -proceedOnError -Xset:pipelineCompilation=false">
<message kind="error" line="1" text="Bound mismatch"/>
</compile>
<compile files="Concrete.java Abstract.java" options="-1.5 -proceedOnError -Xset:pipelineCompilation=false">
<message kind="error" line="1" text="Bound mismatch"/>
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr254207/case2" title="ordering issue - 2">
<compile files="Interface.java Clazz.java Abstract.java Concrete.java" options="-1.5 -proceedOnError -Xset:pipelineCompilation=false">
<message kind="error" line="1" text="Bound mismatch"/>
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr256669" title="parameter annotations on ITDs">
<compile files="Destination.java SimpleTest.java Introduction.java SomeAnnotation.java" options="-1.5"/>
<run class="SimpleTest">
<stdout>
<line text="Parameter 0 has 1 parameter annotations"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr256669" title="parameter annotations on ITDs - 2">
<compile files="Two.java" options="-1.5"/>
<run class="Two">
<stdout>
<line text="Parameter 0 has 1 parameter annotations"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr256669" title="parameter annotations on ITDs - 3">
<compile files="Three.java" options="-1.5"/>
<run class="Three">
<stdout>
<line text="Parameter 0 has 0 parameter annotations"/>
<line text="Parameter 1 has 1 parameter annotations"/>
<line text="Parameter 2 has 0 parameter annotations"/>
<line text="Parameter 3 has 1 parameter annotations"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr256669" title="parameter annotations on ITDs - 4">
<compile files="Four.java" options="-1.5"/>
<run class="Four">
<stdout>
<line text="Class D parameter 0 has 1 parameter annotations"/>
<line text="Interface I parameter 0 has 1 parameter annotations"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr253109" title="generic pointcuts - 1">
<compile files="CodeOne.java" options="-1.5">
<message kind="warning" line="4" text="has not been applied"/>
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr257833" title="param annos and at args">
<compile files="NotNull.java NotNullAspect.java NotNullTest.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'constructor-execution(void patterntesting.check.runtime.NotNullTest.<init>(java.lang.String))' in Type"/>
</compile>
<run class="patterntesting.check.runtime.NotNullTest"/>
</ajc-test>
<ajc-test dir="bugs163/pr253109" title="generic pointcuts - 2">
<compile files="CodeTwo.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs163/pr253109" title="generic pointcuts - 3">
<compile files="CodeThree.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="advised by before advice from 'CodeThree' (CodeThree.java:4)"/>
<message kind="weave" text="advised by before advice from 'CodeThree' (CodeThree.java:5) [with runtime test]"/>
<message kind="warning" line="6" text="has not been applied"/>
<message kind="warning" line="7" text="has not been applied"/>
<message kind="weave" text="advised by before advice from 'CodeThree' (CodeThree.java:8)"/>
<message kind="weave" text="advised by before advice from 'CodeThree' (CodeThree.java:9) [with runtime test]"/>
<message kind="warning" line="5" text="unchecked"/>
<message kind="warning" line="9" text="unchecked"/>
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr253109" title="generic pointcuts - 4">
<compile files="CodeFour.java" options="-1.5">
<message kind="warning" text="has not been applied"/>
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr255856" title="attarget with plus">
<compile files="Bug.java" options="-1.5">
<message kind="error" text="unexpected pointcut element"/>
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr253109" title="generic pointcuts - 5">
<compile files="CodeFive.java" options="-1.5 -showWeaveInfo">
<message kind="weave" line="55" text="advised by around advice"/>
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr163005" title="do not add method bodies to an interface">
<compile files="Code.java" options="-1.4">
<message kind="warning" text="The joinpoint 'method-call(java.lang.Class java.lang.Class.forName(java.lang.String))' cannot be advised"/>
</compile>
<run class="Code"/>
</ajc-test>
<ajc-test dir="bugs163/pr163005" title="do not add method bodies to an interface - 2">
<compile files="Code.java" options="-1.4 -XnoInline">
<message kind="warning" text="The joinpoint 'method-call(java.lang.Class java.lang.Class.forName(java.lang.String))' cannot be advised"/>
</compile>
<run class="Code"/>
</ajc-test>
<ajc-test dir="bugs163/pr163005" title="do not add method bodies to an interface - 3">
<compile files="Code2.java" options="-1.4">
<message kind="warning" text="The joinpoint 'constructor-call(void java.lang.Object.<init>())' cannot be advised"/>
</compile>
<run class="Code2"/>
</ajc-test>
<ajc-test dir="bugs163/pr250091" title="itd cce">
<compile files="Demo.java" options="-1.5"/>
<run class="Demo">
<stdout>
<line text="class A (false)"/>
<line text="class A (false)"/>
<line text="class Base (false)"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr226163" title="breaking recovery">
<compile files="Code.java" options="-1.5">
<message kind="error" line="4" text="Syntax error"/>
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr173978" title="missing local variable table on around advice">
<compile files="Test.java TestAroundAspect.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs163/pr249710" title="terminateAfterCompilation">
<compile files="Foo.java" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="bugs163/pr250632" title="type conversion in generic itd">
<compile files="MyAspect.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs163/pr250493" title="bridge methods for generic itds">
<compile files="Bridged.java" options="-1.5"/>
<run class="Bridged">
<stdout>
<line text="getterA()java.lang.Object isBridged?true"/>
<line text="getterA()java.lang.String isBridged?false"/>
<line text="getterB()java.lang.Object isBridged?true"/>
<line text="getterB()java.lang.String isBridged?false"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr252285" title="bridge methods for generic itd fields">
<compile files="Bridged.java" options="-1.5"/>
<run class="Bridged">
<stdout>
<line text="ajc$interFieldGet$X$Super$getterA()java.lang.Integer isBridged?false"/>
<line text="ajc$interFieldGet$X$Super$getterA()java.lang.Number isBridged?true"/>
<line text="ajc$interFieldSet$X$Super$getterA()void isBridged?false"/>
<line text="ajc$interFieldSet$X$Super$getterA()void isBridged?true"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs163/pr251326" title="itd anonymous inner class in wrong package">
<compile files="pkgA/Listener.java pkgA/Target.java pkgB/InferListener.aj" options="-1.5"/>
<run class="pkgA.Target">
<stdout>
<line text="Simple A"/>
<line text="Inferred B"/>
</stdout>
</run>
</ajc-test>
</suite>
|