blob: fa4854194e32bddbb965e226abefb313523b71a9 (
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
|
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
<!-- AspectJ v1.5.2 Tests -->
<suite>
<ajc-test dir="features153/jdtlikehandleprovider" title="More than one named pointcut">
<compile files="HandleProvider.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="aspect handle">
<compile files="A1.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="advice handle">
<compile files="A2.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="pointcut handle">
<compile files="A4.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="get IProgramElement with aspect handle">
<compile files="A1.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="advice handle with crosscutting">
<compile files="A3.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="two pieces of advice with the same signature and pointcut">
<compile files="A5.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="pointcut handle with args">
<compile files="A6.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="declare parents handle">
<compile files="A7.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="two declare parents in same file">
<compile files="A7.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="advice handle with args">
<compile files="A8.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="field itd handle">
<compile files="A9.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method itd handle">
<compile files="A9.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method itd with args handle">
<compile files="A9.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="constructor itd with args">
<compile files="A13.aj" options="-emacssym">
<message kind="warning" text="inter-type constructor"/>
</compile>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method call handle">
<compile files="A10.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="declare warning handle">
<compile files="A11.aj" options="-emacssym">
<message kind="warning" text="blah"/>
<message kind="warning" text="Illegal call"/>
</compile>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="two declare warning handles">
<compile files="A11.aj" options="-emacssym">
<message kind="warning" text="blah"/>
<message kind="warning" text="Illegal call"/>
</compile>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="ten declare warning handles">
<compile files="DeclareWarnings.aj" options="-emacssym">
<message kind="warning" text="warning 1"/>
<message kind="warning" text="warning 2"/>
<message kind="warning" text="warning 3"/>
<message kind="warning" text="warning 4"/>
<message kind="warning" text="warning 5"/>
<message kind="warning" text="warning 6"/>
<message kind="warning" text="warning 7"/>
<message kind="warning" text="warning 8"/>
<message kind="warning" text="warning 9"/>
<message kind="warning" text="warning 10"/>
</compile>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="declare @type">
<compile files="A12.aj" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="declare @field">
<compile files="A12.aj" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="declare @method">
<compile files="A12.aj" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="declare @constructor">
<compile files="A12.aj" options="-emacssym -1.5"/>
</ajc-test>
<!-- tests to ensure handle provider produces same as the jdt -->
<ajc-test dir="features153/jdtlikehandleprovider" title="compilation unit same as jdt">
<compile files="Demo.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="class same as jdt">
<compile files="C.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="interface same as jdt">
<compile files="C.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="constructor same as jdt">
<compile files="C.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="constructor with args same as jdt">
<compile files="C.java" options="-emacssym"/>
</ajc-test>
<!-- <ajc-test dir="features153/jdtlikehandleprovider" title="package declaration same as jdt">
<compile files="Demo.java" options="-emacssym"/>
</ajc-test>
-->
<ajc-test dir="features153/jdtlikehandleprovider" title="import declaration same as jdt">
<compile files="Demo.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="type same as jdt">
<compile files="Demo.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="field same as jdt">
<compile files="Demo.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="initialization same as jdt">
<compile files="Demo.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method with string array as argument same as jdt">
<compile files="Demo.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method with int array as argument same as jdt">
<compile files="Demo.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method with no args same as jdt">
<compile files="Demo.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method with two args same as jdt">
<compile files="Demo.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method with two string args same as jdt">
<compile files="Demo.java" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="enum same as jdt">
<compile files="E.java" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="enum value same as jdt">
<compile files="E.java" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="annotation same as jdt">
<compile files="MyAnnotation.java" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method with list arg same as jdt">
<compile files="Java5Class.java" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method with generic arg same as jdt">
<compile files="Java5Class.java" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method with two generic args same as jdt">
<compile files="Java5Class.java" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method with two type parameters same as jdt">
<compile files="Java5Class.java" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="method with two args one of which is generic same as jdt">
<compile files="Java5Class.java" options="-emacssym -1.5"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="ipes with same name have unique handles - method-call">
<compile files="TwoMethodCalls.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="ipes with different names do not have counter - method-call">
<compile files="TwoDiffMethodCalls.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="ipes with same name have unique handles - handler">
<compile files="Handler.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="ipes with same name have unique handles - get">
<compile files="Get.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="ipes with same name have unique handles - set">
<compile files="Set.aj" options="-emacssym"/>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="advice with same name in injar aspect should have unique handles">
<compile files="ClassForAspectpath.java" options="-emacssym" aspectpath="jarForAspectPath.jar">
<message kind="warning" text="blah"/>
<message kind="warning" text="blah2"/>
</compile>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="declare warnings in injar aspect should have unique handles">
<compile files="ClassForAspectpath.java" options="-emacssym" aspectpath="jarForAspectPath.jar">
<message kind="warning" text="blah"/>
<message kind="warning" text="blah2"/>
</compile>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="dont increment counter for different declares">
<compile files="ClassForAspectpath.java" options="-emacssym" aspectpath="declare.jar">
<message kind="warning" text="warning"/>
<message kind="error" text="error"/>
</compile>
</ajc-test>
<ajc-test dir="features153/jdtlikehandleprovider" title="dont increment counter for different advice kinds">
<compile files="ClassForAspectpath.java" options="-emacssym" aspectpath="advice.jar"/>
</ajc-test>
</suite>
|