aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/resources/org/aspectj/systemtest/ajc161/ajc161.xml
blob: 8a1798b8bcf0644a2ca7e1ce799bed8142fcef83 (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
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>

<!-- AspectJ v1.6.1 Tests -->
<suite>


	<ajc-test dir="bugs161/pr237447" title="signature processing">
    	<compile files="GenericClass.java SomeClass.java GenericGenericMemberClass.java UnrelatedAspect.java" options="-1.5"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr173978" title="lv table for around">
    	<compile files="TestAroundAspect.java Test.java" options="-1.5"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr237419" title="generics ataround">
    	<compile files="problem/aspect/AnyAspect.java problem/SpecificService.java problem/Specific.java problem/GenericService.java problem/Generic.java" options="-1.5"/>
    	<run class="problem.SpecificService"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr203367" title="generic marker match">
    	<compile files="CantMatchOnInterfaceIntroducedToGenericClass.java" options="-1.5"/>
    	<run class="bug.CantMatchOnInterfaceIntroducedToGenericClass"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr198196" title="super itds - 2">
    	<compile files="Marker.java Foo.java MarkerAspect2.java"/>
    	<run class="Foo">
	    	<stdout>
	    		<line text="a"/>
	    		<line text="a"/>
	    		<line text="a"/>
	    		<line text="a"/>
	    		<line text="a"/>
	    		<line text="a"/>
	    	</stdout>
    	</run>
    </ajc-test>

	<ajc-test dir="bugs161/pr198196" title="super itds - 3">
    	<compile files="Marker.java Foo.java MarkerAspect1.java"/>
    	<run class="Foo"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr198196" title="super itds - 4">
    	<compile files="Marker.java Foo.java MarkerAspect3.java"/>
    	<run class="Foo"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr134425" title="super itds">
    	<compile files="Derived.java Base.java"/>
    	<run class="pkg.Derived"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr237381" title="ataspectj deow - 1">
    	<compile files="Deow1.java" options="-1.5">
    	  <message kind="warning" line="7" text="fromX"/>
    	  <message kind="warning" line="15" text="fromY"/>
    	</compile>
    </ajc-test>

	<ajc-test dir="bugs161/pr237381" title="ataspectj deow - 2">
    	<compile files="Deow2.java" options="-1.5">
    	  <message kind="error" line="7" text="fromX"/>
    	  <message kind="error" line="15" text="fromY"/>
    	</compile>
    </ajc-test>

	<ajc-test dir="bugs161/pr102733" title="running broken code">
    	<compile files="C.java" options="-proceedOnError">
    	  <message file="C.java" kind="error" line="1" text="Unnamed Classes and Instance Main Methods"/>
    	  <message file="C.java" kind="error" line="2" text="blahblahpackage cannot be resolved to a type"/>
    	  <message file="C.java" kind="error" line="2" text="Implicitly declared class must have a candidate main method"/>
    	  <message file="C.java" kind="error" line="2" text="The method main cannot be declared static; static methods can only be declared in a static or top level type"/>
    	</compile>
    	<compile files="Invoker.java"/>
    	<run class="Invoker"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr102733" title="running broken code - 2">
    	<compile files="Invoker2.java C2.java" options="-proceedOnError">
    	  <message kind="error" line="5"/>
    	</compile>
    	<run class="Invoker2"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr102733" title="running broken code - 3">
    	<compile files="C3.java Invoker3.java" options="-proceedOnError">
    	  <message file="C3.java" kind="error" line="5" text="blahblahpackage cannot be resolved to a type"/>
    	</compile>
    	<run class="Invoker3"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr168982" title="error on non-abstract generic ataspectj aspect">
    	<compile files="TracingAspect2.java" options="-1.5">
    	  <message kind="error" line="9"/>
    	</compile>
    </ajc-test>

	<ajc-test dir="bugs161/pr234933" title="ignoring type level suppress">
    	<compile files="Foobar.java" options="-1.5 -Xlint:error"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr223226" title="duplicate method signature - 2">
    	<compile files="AspectX.java BInterface.java FooInterface.java AspectXMarker.java Foo.java Test.java" options="-1.5"/>
    	<run class="Test"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr223226" title="duplicate method signature">
    	<compile files="AspectX.java BInterface.java FooInterface.java AspectXMarker.java Foo.java Test.java" options="">
    	  <message kind="error" line="1"/>
    	  <message kind="error" line="2"/>
    	  <message kind="error" line="3"/>
    	  <message kind="error" line="5"/>
    	</compile>
    </ajc-test>

	<ajc-test dir="bugs161/pr197719" title="protected methods and around advice - again - 2">
    	<compile files="test/aspects/C1.java test/aspects/C3.java test/aspects/MyAnn.java test/aspects/MyAnnAspect.java test/aspects2/C2.java" options="-1.5 -showWeaveInfo">
    	  <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C1' (C1.java:12) "/>

    	  <!-- first of these through accessor - so line number wrong and target wrong -->
    	  <message kind="weave" text="Join point 'method-call(void test.aspects2.C2.aMethod())' in Type 'test.aspects2.C2' (C2.java:1) "/><!-- was line 18 -->
    	  <message kind="weave" text="Join point 'method-call(void test.aspects2.C2.aMethod())' in Type 'test.aspects2.C2' (C2.java:8) "/>
    	  <message kind="weave" text="Join point 'method-call(void test.aspects2.C2.aMethod())' in Type 'test.aspects2.C2' (C2.java:29) "/>

    	  <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C3' (C3.java:10) "/>
    	  <message kind="weave" text="Join point 'method-call(void test.aspects2.C2.aMethod())' in Type 'test.aspects.C3' (C3.java:13) "/>
    	  <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C3$InnerClass' (C3.java:24) "/>
    	  <message kind="weave" text="Join point 'method-call(void test.aspects2.C2.aMethod())' in Type 'test.aspects.C3$InnerClass' (C3.java:27) "/>
    	  <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C3' (C3.java:34) "/>

    	</compile>

    	<run class="test.aspects.C3">
    	</run>
    </ajc-test>

	<ajc-test dir="bugs161/pr197719" title="protected methods and around advice - again">
    	<compile files="A.java B.java X.java" options="-1.5"/>
    	<run class="b.B">
    	  <stdout>
    	    <line text="calling m()"/>
    	    <line text="advice running"/>
    	    <line text="m() running"/>
    	  </stdout>
    	</run>
    </ajc-test>

	<ajc-test dir="bugs161/pr230075" title="protected methods and around advice">
    	<compile files="A.java B.java C.java X.java" options="-1.5"/>
    	<run class="a.C"/>
    </ajc-test>

	<ajc-test dir="bugs161/pr174385" title="static strings in annotation pointcuts">
    	<compile files="StaticFinalStringInPointcutAspect.java" options="-1.5"/>
    	<run class="bug.StaticFinalStringInPointcutAspect"/>
    </ajc-test>

    <ajc-test dir="bugs161/pr199130" title="complex bounds on generic aspect - 1">
    	<compile files="Simple.java" options="-1.5"/>
    	<run class="Simple">
    	</run>
    </ajc-test>

	<ajc-test dir="bugs161/pr199130" title="complex bounds on generic aspect - 2">
    	<compile files="Complex.java" options="-1.5"/>
    	<run class="Complex">
    	</run>
    </ajc-test>

	<ajc-test dir="bugs161/pr199130" title="complex bounds on generic aspect - 3">
    	<compile files="Complex2.java" options="-1.5"/>
    	<run class="Complex2">
    	</run>
    </ajc-test>

	<ajc-test dir="bugs161/pr226201" title="generic aspect around advice">
    	<compile files="IntAspTest.java" options="-1.5"/>
    	<run class="IntAspTest">
    	</run>
    </ajc-test>

	<ajc-test dir="bugs161/pr235829" title="crazy generics and inner types">
    	<compile files="Main.java a/Adapter.java a/b/Adapter.java" options="-1.5"/>
    	<run class="Main"/>
    </ajc-test>

    <ajc-test dir="bugs161/pr235597" title="annotation exposure and generics">
        <compile files="AnnotationTest1.java SomeAnnotation.java SomeAspect.java" options="-1.5"/>
        <run class="AnnotationTest1">
          <stdout>
            <line text="@someAspect annotation parameter (call)"/>
            <line text="@someAspect annotation no parameter"/>
            <line text="@someAspect method name"/>
            <line text="@someAspect annotation parameter (execution)"/>
            <line text="test 1"/>
            <line text="@someAspect annotation parameter (call)"/>
            <line text="@someAspect annotation no parameter"/>
            <line text="@someAspect method name"/>
            <line text="@someAspect annotation parameter (execution)"/>
            <line text="test 2"/>
            <line text="@someAspect annotation parameter (call)"/>
            <line text="@someAspect annotation no parameter"/>
            <line text="@someAspect method name"/>
            <line text="@someAspect annotation parameter (execution)"/>
            <line text="test 3"/>
          </stdout>
        </run>
    </ajc-test>


    <ajc-test dir="bugs161/pr235204" title="incorrect call relationship">
        <compile files="RecursiveCatcher.java" options="-1.5 -emacssym"/>
    </ajc-test>

    <ajc-test dir="bugs161/pr233838" title="itd precedence - 1">
        <compile files="Z.java" options="-1.5"/>
        <run class="Z">
          <stdout>
            <line text="X.test()"/>
          </stdout>
        </run>
    </ajc-test>

    <ajc-test dir="bugs161/pr233838" title="itd precedence - 2">
        <compile files="Z2.java" options="-1.5"/>
        <run class="Z2">
          <stdout>
            <line text="Y.test()"/>
          </stdout>
        </run>
    </ajc-test>


    <ajc-test dir="bugs161/pr227401" title="getfield problem with generics">
        <compile files="Instrumentation.java Fails.java" options="-1.5"/>
        <run class="Fails">
          <stdout>
            <line text="getField(* protS)  getField()='protected java.lang.String Fails$A.protS'  getDeclaringType()='class Fails$A'"/>
            <line text="getField(* prot)  getField()='protected int Fails$A.prot'  getDeclaringType()='class Fails$A'"/>
            <line text="22"/>
            <line text="getField(* defS)  getField()='java.lang.String Fails$A.defS'  getDeclaringType()='class Fails$A'"/>
            <line text="getField(* def)  getField()='int Fails$A.def'  getDeclaringType()='class Fails$A'"/>
            <line text="11"/>
            <line text="getField(* defS)  getField()='java.lang.String Fails$A.defS'  getDeclaringType()='class Fails$A'"/>
            <line text="getField(* def)  getField()='int Fails$A.def'  getDeclaringType()='class Fails$A'"/>
            <line text="22"/>
          </stdout>
        </run>
    </ajc-test>

    <ajc-test dir="bugs161/pr231478" title="generic abstract aspects">
        <compile files="Base.java Sub.java AbstractComponent.java AbstractWindow.java" options="-1.5"/>
    </ajc-test>

    <ajc-test dir="bugs161/pr227993" title="field jp anno value">
        <compile files="FieldJP.java" options="-1.5"/>
        <run class="FieldJP">
          <stderr>
            <line text="get of YES field"/>
            <line text="fone=0"/>
            <line text="get of NO field"/>
            <line text="ftwo=0"/>
            <line text="fthr=0"/>
            <line text="set of YES field"/>
            <line text="set of NO field"/>
          </stderr>
        </run>
    </ajc-test>

    <ajc-test dir="bugs161/pr231187x" title="generics bounds decp">
        <compile files="Cement.java ConcreteClass.java SuperClass.java SuperClassAspect.aj WetCement.java Main.java" options="-1.5"/>
        <run class="concrete.Main">
          <stdout>
            <line text="ran!"/>
          </stdout>
        </run>
    </ajc-test>

    <ajc-test dir="bugs161/pr231187x" title="generics bounds decp - 2">
        <compile files="Cement.java ConcreteClass.java SuperClass.java WetCement.java" options="-1.5">
          <message kind="error" text="The type WetCement is not a valid substitute for the bounded parameter"/>
        </compile>
    </ajc-test>

    <ajc-test dir="bugs161/pr230134" title="ltw inherited cflow">
      <compile files="HW.java"/>
      <compile files="SimpleTracing.java Tracing.java HelloWorldTracing.java" outjar="foo.jar" options="-1.4"/>
      <run class="hello.HW" classpath="$sandbox/foo.jar" ltw="aop.xml">
        <stdout>
          <line text="Hello World"/>
 	    </stdout>
      </run>
    </ajc-test>

    <ajc-test dir="bugs161/pr229910" title="around advice on field set">
        <compile files="Test.java" options="-1.5"/>
        <run class="Test"/>
    </ajc-test>

    <ajc-test dir="bugs161/pr226567" title="pipeline compilation and generic return type">
        <compile files="BarAspect.aj Foo.java Bar.java" options="-1.5"/>
        <compile files="BarAspect.aj Bar.java Foo.java" options="-1.5"/>
    </ajc-test>

    <ajc-test dir="bugs161/pr235505" title="privileged generic aspect">
        <compile files="A.java" options="-1.5"/>
    </ajc-test>

    <ajc-test dir="bugs161/pr235505" title="privileged generic aspect - 2">
        <compile files="B.java" options="-1.5"/>
        <run class="B">
          <stdout>
            <line text="Hello World"/>
            <line text="Hello World"/>
          </stdout>
        </run>
    </ajc-test>

    <ajc-test dir="bugs161/pr64222" title="parsing around advice no return">
        <compile files="C.java" options="-1.5">
          <message kind="error" line="6" text="to complete around advice declaration"/>
        </compile>
    </ajc-test>

    <ajc-test dir="bugs161/pr159268" title="before array name">
        <compile files="C.java" options="-1.5"/>
    </ajc-test>



</suite>