aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml
blob: 25b0cfff7a0693fb192431c3abae0456dd39dae1 (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
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>

<suite>

<ajc-test dir="bugs1612/pr347684" title="binding ints">
<compile files="BindingInts.java" options="-1.5"/>
<run class="BindingInts">
  <stdout>
  <line text="execution(void BindingInts.a()) 37"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr347684" title="binding ints - 2">
<compile files="BindingInts2.java" options="-1.5"/>
<run class="BindingInts2">
  <stdout>
  <line text="execution(void BindingInts2.a()) 99"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr347684" title="binding ints - 3">
<compile files="BindingInts3.java" options="-1.5"/>
<run class="BindingInts3">
  <stdout>
  <line text="execution(void BindingInts3.a()) abc"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr347684" title="binding ints - 4">
<compile files="BindingInts4.java" options="-1.5"/>
<run class="BindingInts4">
  <stdout>
  <line text="execution(void BindingInts4.a()) 37 48"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr347684" title="binding ints - 5">
<compile files="BindingInts5.java" options="-1.5"/>
<run class="BindingInts5">
  <stdout>
  <line text="execution(void BindingInts5.a()) 37"/>
  </stdout>
</run>
</ajc-test>


<ajc-test dir="bugs1612/pr347684" title="binding ints - 6">
<compile files="BindingInts6.java" options="-1.5"/>
<run class="BindingInts6">
  <stdout>
  <line text="execution(void BindingInts6.a()) 37 1 99"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr345515" title="anno copying">
<compile files="Code.java" options="-1.5"/>
<run class="Code"></run>
</ajc-test>

<ajc-test dir="bugs1612/pr327867" title="synthetic methods">
<compile files="Foo.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void Foo.main(java.lang.String[]))' in Type 'Foo' (Foo.java:3) advised by before advice from 'X' (Foo.java:17)"/>
<message kind="weave" text="Join point 'method-execution(void Foo.m())' in Type 'Foo' (Foo.java:7) advised by before advice from 'X' (Foo.java:17)"/>
</compile>
<run class="Foo"/>
</ajc-test>

<ajc-test dir="bugs1612/pr345172" title="incorrect annos">
<compile files="InterType.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void InterType$InterTypeIfc.m1(int))' in Type 'InterType' (InterType.java:21) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
<!-- 
<message kind="weave" text="Join point 'method-execution(void InterType$InterTypeIfc.m1(int, int))' in Type 'InterType' (InterType.java:24) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
<message kind="weave" text="Join point 'method-execution(void InterType.m1(int))' in Type 'InterType' (InterType.java:28) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
-->
<message kind="weave" text="Type 'InterType$InterTypeIfc' (InterType.java) has intertyped method from 'InterType' (InterType.java:'void InterType$InterTypeIfc.m1(int)')"/>
<message kind="weave" text="Type 'InterType$InterTypeIfc' (InterType.java) has intertyped method from 'InterType' (InterType.java:'void InterType$InterTypeIfc.m1(int, int)')"/>
</compile>
<run class="InterType"/>
</ajc-test>

<ajc-test dir="bugs1612/pr345172" title="incorrect annos 2">
<compile files="InterType2.java" options="-1.5">
</compile>
<run class="InterType2">
<stdout>
<line text="execution(void InterType2.InterTypeIfc.m1(int))"/>
</stdout></run>
</ajc-test>

<ajc-test dir="bugs1612/pr345172" title="incorrect annos 3">
<compile files="InterType3.java" options="-1.5">
</compile>
<run class="InterType3">
<stdout>
<line text="execution(void InterType3.InterTypeIfc.m1(int, String))"/>
</stdout></run>
</ajc-test>




<ajc-test dir="bugs1612/pr328099" title="signed jar ltw">
<compile files="X.java" classpath="code.jar"/>
<run class="foo.bar.FooLaunch" ltw="aop.xml" classpath="$sandbox/code.jar">
<stdout>
<line text="pre...Foo.bar()...post"/>
</stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr315398" title="verifyerror">
<compile files="Code.java" options="-1.5">
</compile>
<run class="Code">
<stdout>
<line text="1"/>
<line text="advice"/>
<line text="2"/>
</stdout></run>
</ajc-test>

<ajc-test dir="bugs1612/pr315398" title="verifyerror - 2">
<compile files="Code2.java" options="-1.5">
</compile>
<run class="Code2"></run>
</ajc-test>

<ajc-test dir="bugs1612/pr335810" title="rawtype warning">
<compile files="One.java" options="-1.5 -warn:+raw -warn:+warningToken">
</compile>
</ajc-test>

<ajc-test dir="bugs1612/pr327134" title="rawtype pointcut">
<compile files="Code.java" options="-1.5 -warn:+raw -warn:+warningToken">
</compile>
</ajc-test>

<ajc-test dir="bugs1612/pr344005" title="decp generics">
<compile files="Anno.java Types.java Azpect.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="XX"/>
</compile>
</ajc-test>

<ajc-test dir="bugs1612/pr343051" title="illegalaccesserror">
<compile files="Code.java Code2.java Azpect.java" options="-1.5"/>
<run class="p.Code">
<stdout>
<line text="abc"/>
</stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr339974" title="itit npe">
<compile files="City.java TrafficCalculator.java" options="-1.5">
<message kind="error" text="The nested type TrafficCalculator cannot hide an enclosing type"/>
</compile>
</ajc-test>

<ajc-test dir="bugs1612/pr342605" title="noimporterror">
<compile files="Code.java" options="-1.5 -noImportError"/>
<run class="Code"/>
</ajc-test>

  <ajc-test dir="bugs1612/pr342323" title="clashing local types">
  	<compile files="Runner.java Bean.java Azpect.java" options="-1.5"/>
  	<run class="ppp.Runner">
  	<stdout>
	  	<line text="Calling regular method"/>
	  	<line text="class"/>
	  	<line text="Calling itd method"/>
	  	<line text="aspect foo"/>
  	</stdout>
  	</run>
  </ajc-test>

<ajc-test dir="bugs1612/pr338175" title="itit">
<compile files="pack1/Aspect.java pack2/Java.java pack2/Java2.java" options="-1.5">
	<message kind="error" text="Duplicate nested type ITIT"/>
	<message kind="error" text="can't determine modifiers"/>
</compile>
</ajc-test>

  <ajc-test dir="bugs1612/pr292239" title="throws clause">
  	<compile files="Code.java" options="-1.5 -showWeaveInfo">
  	  <message kind="weave" text="Join point 'method-execution(void mypackage.Code.n())' in Type 'mypackage.Code' (Code.java:19) advised by afterThrowing advice from 'mypackage.Azpect' (Code.java:9)"/>
  	</compile>
  	<run class="mypackage.Code">
  	<stdout>
  	<line text="caught it"/>
  	<line text="done"/>
  	</stdout>
  	</run>
  </ajc-test>
  
  <ajc-test dir="bugs1612/pr292239" title="throws clause - 2">
  	<compile files="Code2.java" options="-1.5 -showWeaveInfo">
  	  <message kind="weave" text="Join point 'method-execution(void mypackage.Code2.n2())' in Type 'mypackage.Code2' (Code2.java:17) advised by afterThrowing advice from 'mypackage.Azpect' (Code2.java:7)"/>
  	</compile>
  	<run class="mypackage.Code2">
  	<stdout>
  	<line text="caught it: execution(void mypackage.Code2.n2())"/>
  	<line text="done"/>
  	</stdout>
  	</run>
  </ajc-test>
<!--  

  
  <ajc-test dir="bugs1611/pr336136" title="itit">
    <compile files="Country_Roo_Op4j.java">
    <message kind="error" text="The import com.foo cannot be resolved" line="1"/>
    <message kind="error" text="The import org.javaruntype cannot be resolved" line="3"/>
    <message kind="error" text="The import org.op4j cannot be resolved" line="4"/>
    <message kind="error" text="The import org.op4j cannot be resolved" line="5"/>
    <message kind="error" text="Country cannot be resolved to a type" line="9"/>
    <message kind="error" text="Function cannot be resolved to a type" line="11"/>
    <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j$Keys"/>
    </compile>"
  </ajc-test>
  
  -->
  
  
</suite>