aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ajcTestsAttic.xml
blob: e6cbf3bae4ab7582d0c1e7101b9d02d4a3438d70 (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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">


<suite>
    <ajc-test dir="tom"
      title="The classes which implement the conflict sets pattern from CPJ(2e).  There should be no errors."
      keywords="from-tomtests">
        <compile files="Assertions.java,conflict_sets/*.java"/>
        <run class="Main"/>
    </ajc-test>

    <ajc-test dir="tom"
      title="The Classes which implement the Joint Actions protocols from CPJ(2e).  There should be no errors."
      keywords="from-tomtests">
        <compile files="Assertions.java,joint_actions/*.java"/>
        <run class="Main"/>
    </ajc-test>

    <ajc-test dir="tom" title="Subject/Observer Pattern.  no errors"
      keywords="from-tomtests">
        <compile files="Assertions.java,subject_observer/*.java"/>
        <run class="Main"/>
    </ajc-test>

    <ajc-test dir="tom" title="Method Confinement. no errors"
      keywords="from-tomtests">
        <compile files="Assertions.java,confinement/*.java"/>
        <run class="Main"/>
    </ajc-test>

    <ajc-test dir="tom" title="Double Check policy. no errors"
      keywords="from-tomtests">
        <compile files="Assertions.java,double_check/*.java"/>
        <run class="Main"/>
    </ajc-test>

    <ajc-test dir="tom" title="A Rollback strategy. no errors"
      keywords="from-tomtests">
        <compile files="Assertions.java,rollback/*.java"/>
        <run class="Main"/>
    </ajc-test>

    <ajc-test dir="tom" title="An impl of the Futures pattern. no errors"
      keywords="from-tomtests">
        <compile files="Assertions.java,futures/*.java"/>
        <run class="Main"/>
    </ajc-test>

    <ajc-test dir="tom" title="The Guards policy. no errors"
      keywords="from-tomtests">
        <compile files="Assertions.java,guards/*.java"/>
        <run class="Main"/>
    </ajc-test>

    <ajc-test dir="tom" title="Using State Variables.  no errors"
      keywords="from-tomtests">
        <compile files="Assertions.java,state_variables/*.java"/>
        <run class="Main"/>
    </ajc-test>

    <ajc-test dir="tom" title="A guards example. no errors"
      keywords="from-tomtests">
        <compile files="Assertions.java,waiting_stack/*.java"/>
        <run class="Main"/>
    </ajc-test>

    <ajc-test dir="tom" title="Demonstrates resource sharing. no errors"
      keywords="from-tomtests">
        <compile files="Assertions.java,printer_example/*.java"/>
        <run class="Main"/>
    </ajc-test>

    <ajc-test dir="errors" title="Should fail because two aspects are public"
      keywords="from-opentests">
        <compile files="TwoPublics.java">
            <message kind="error" line="1"/>
        </compile>
    </ajc-test>

    <ajc-test dir="new" title="illegal forward reference using introduction"
      keywords="from-opentests">
        <compile files="IllegalForwardReference.java"/>
        <run class="IllegalForwardReference"/>
    </ajc-test>

    <ajc-test dir="new" pr="396"
      title="Not binding static inner interfaces. ( )" keywords="from-opentests">
        <compile files="StaticInnerInterfaces_PR386.java"/>
        <run class="StaticInnerInterfaces_PR386"/>
    </ajc-test>

    <ajc-test dir="new" pr="396"
      title="Not binding non-static inner interfaces. ( )"
      keywords="from-opentests">
        <compile files="NonStaticInnerInterfaces_PR386.java"/>
        <run class="NonStaticInnerInterfaces_PR386"/>
    </ajc-test>

    <ajc-test dir="errors" title="Ambiguous interface should produce error"
      keywords="from-opentests">
        <compile files="AmbiguousInterface.java">
            <message kind="error" line="13"/>
        </compile>
    </ajc-test>

    <ajc-test dir="errors"
      title="Parser shouldn't accept 'const' as a variable name."
      keywords="from-opentests">
        <compile files="Const.java">
            <message kind="error" line="9"/>
            <message kind="error" line="10"/>
            <message kind="error" line="15"/>
            <message kind="error" line="19"/>
        </compile>
    </ajc-test>

    <ajc-test dir="errors"
      title="Parser shouldn't accept 'goto' as a variable name."
      keywords="from-opentests">
        <compile files="Goto.java">
            <message kind="error" line="4"/>
            <message kind="error" line="9"/>
            <message kind="error" line="10"/>
            <message kind="error" line="14"/>
        </compile>
    </ajc-test>

    <ajc-test dir="errors"
      title="Over-boundary base values cause compile-time errors"
      keywords="from-opentests">
        <compile files="BoundaryNums.java">
            <message kind="error" line="22"/>
        </compile>
    </ajc-test>

    <ajc-test dir="new"
      title="creates two a.java files when two classes have the same name in different cases (will not fail)"
      keywords="from-badtests">
        <compile files="LowerAndUpper.java"/>
        <run class="LowerAndUpper"/>
    </ajc-test>

    <ajc-test dir="new" pr="312"
      title="don't make each object when there's no this (should take this out)"
      keywords="from-badtests">
        <compile files="EachObjectNoThis.java"/>
        <run class="EachObjectNoThis"/>
    </ajc-test>

    <ajc-test dir="new" pr="652"
      title="declare parent accepting interface for extension"
      keywords="from-badtests">
        <compile files="DeclareParentsNonsenseCE.java">
            <message kind="error" line="4"/>
            <message kind="error" line="6"/>
        </compile>
    </ajc-test>

    <ajc-test dir="new" title="Using hasaspect. [eachobject] (still)"
      keywords="from-08tests">
        <compile files="HasAspect.java"/>
        <run class="HasAspect"/>
    </ajc-test>

    <ajc-test dir="new"
      title="(DESIGN QUESTION) aspects of eachobject and serialization (still)"
      keywords="from-08tests">
        <compile files="SerializedOf.java"/>
        <run class="SerializedOf"/>
    </ajc-test>

    <ajc-test dir="new"
      title="around advice interacting with checked exceptions, with callsto (still)"
      keywords="from-08tests">
        <compile files="AroundExceptions.java"/>
        <run class="AroundExceptions"/>
    </ajc-test>

    <ajc-test dir="pureJava"
      title="TriTestExprs interact with constant folding and name binding"
      keywords="from-knownbugs">
        <compile files="TriTestMethodLookup.java"/>
        <run class="TriTestMethodLookup"/>
    </ajc-test>

    <ajc-test dir="pureJava"
      title="Assignment to final fields w/initializers should _always_ be errors"
      keywords="from-knownbugs">
        <compile files="UnderIfFalse.java">
            <message kind="error" line="11"/>
        </compile>
    </ajc-test>

    <ajc-test dir="new"
      title="FAILING errors in unwoven advice not detected at compile time"
      keywords="from-knownbugs">
        <compile files="UnwovenAdviceNotCheckedCE.java">
            <message kind="error" line="13"/>
        </compile>
    </ajc-test>

    <ajc-test dir="new/pr626" pr="626"
      title="declared parent not defined in scope of target class declaration (CE in -usejavac only)"
      keywords="from-knownbugs">
        <compile options="-usejavac" files="a/Outer.java,b/Foo.java"/>
        <run class="a.Outer"/>
    </ajc-test>

    <ajc-test dir="new" pr="694"
      title="after returning advice on handler join points"
      keywords="from-knownbugs">
        <compile files="AfterReturningHandler.java"/>
        <run class="AfterReturningHandler"/>
    </ajc-test>

    <ajc-test dir="new" pr="745"
      title="stack overflow expected when advice recurses into itself"
      keywords="from-knownbugs">
        <compile files="AdviceOnAdviceRecursion.java"/>
        <run class="AdviceOnAdviceRecursion"/>
    </ajc-test>

    <ajc-test dir="new" pr="755"
      title="ajc dies on cflow into field init anon class"
      keywords="from-knownbugs">
        <compile files="CflowOfFieldInitAnonMethods.java"/>
        <run class="CflowOfFieldInitAnonMethods"/>
    </ajc-test>

    <ajc-test dir="pureJava"
      title="Losing information about initializers before checking their control flow"
      keywords="from-knownbugs">
        <compile files="InitializerFlowCf.java">
            <message kind="error" line="2"/>
            <message kind="error" line="4"/>
        </compile>
    </ajc-test>

    <ajc-test dir="new"
      title="the way we do privileged access for ++, etc, messes up floats"
      keywords="from-knownbugs">
        <compile files="FloatPrivilegedRoundoff.java"/>
        <run class="FloatPrivilegedRoundoff"/>
    </ajc-test>

    <ajc-test dir="pureJava"
      title="nested interface does not require new qualifier (7) [extra error message]"
      keywords="from-knownbugs,purejava">
        <compile files="InvalidNewQualifier7CE.java">
            <message kind="error" line="7"/>
        </compile>
    </ajc-test>

    <ajc-test dir="ng" title="interface inheritance should merge throws clauses"
      keywords="from-knownbugs,purejava">
        <compile files="ConflictingThrowsInheritance.java"/>
        <run class="ConflictingThrowsInheritance"/>
    </ajc-test>

    <ajc-test dir="pureJava"
      title="Locals inside other locals, ordering of processing, name-binding"
      keywords="from-knownbugs">
        <compile files="LocalInners3.java"/>
        <run class="LocalInners3"/>
    </ajc-test>

    <ajc-test dir="new" pr="774"
      title="interface self-reference in anonymous instance"
      keywords="from-knownbugs">
        <compile files="AnonymousSelfReference.java"/>
        <run class="AnonymousSelfReference"/>
    </ajc-test>

    <ajc-test dir="new" pr="776"
      title="self-reference from (aspect-declared) method-local class"
      keywords="from-knownbugs">
        <compile files="MethodSelfReference.java"/>
        <run class="MethodSelfReference"/>
    </ajc-test>

    <ajc-test dir="new" title="declaring type in signature of anonymous class"
      keywords="from-knownbugs">
        <compile files="AnonymousClassName.java"/>
        <run class="AnonymousClassName"/>
    </ajc-test>

    <ajc-test dir="new"
      title="VM ClassFormatError on windows if nul used as class name (todo NOTOURBUG, so nul class not loaded in test) (will not fail)"
      keywords="from-knownissues,purejava">
        <compile files="NulIOException3.java"/>
        <run class="NulIOException3"/>
    </ajc-test>

    <ajc-test dir="new" pr="602"
      title="LIMITATION no deprecation warnings (regardless of -deprecation flag)"
      keywords="from-knownissues,purejava">
        <compile options="-deprecation" files="DeprecationWarning.java">
            <message kind="warning" line="11"/>
        </compile>
        <run class="DeprecationWarning"/>
    </ajc-test>

    <ajc-test dir="new"
      title="around, before, after advice on handler join points"
      keywords="from-knownissues">
        <compile files="AroundHandler.java"/>
        <run class="AroundHandler"/>
    </ajc-test>

    <ajc-test dir="new"
      title="compiler limitation on asserts when using -usejavac"
      keywords="from-knownissues">
        <compile options="-usejavac,-source,1.4" files="AssertInInnerIntro.java"/>
        <run class="AssertInInnerIntro"/>
    </ajc-test>

    <ajc-test dir="new"
      title="binding parameters in a ! pcd lexically is always an error"
      keywords="from-knownissues">
        <compile files="BindingInNotCf.java">
            <message kind="error" line="9"/>
            <message kind="error" line="11"/>
            <message kind="error" line="13"/>
        </compile>
    </ajc-test>

    <ajc-test dir="new" pr="704"
      title="RFE mark generated static fields as transient"
      keywords="from-knownissues">
        <compile files="GeneratedStaticAsTransient.java"/>
        <run class="GeneratedStaticAsTransient"/>
    </ajc-test>

    <ajc-test dir="new" pr="706"
      title="compiling large concatenated string [bug also in javac]"
      keywords="from-knownissues,purejava">
        <compile files="LongStringAjc.java"/>
        <run class="LongStringAjc"/>
    </ajc-test>

    <ajc-test dir="new"
      title="rfe: SourceLocationImpl should implement toString as filename:column"
      keywords="from-knownissues">
        <compile files="SourceLocationToString.java"/>
        <run class="SourceLocationToString"/>
    </ajc-test>

    <ajc-test dir="new" pr="740"
      title="pointcut references with incorrect args should prompt compiler errors"
      keywords="from-knownissues">
        <compile files="PCDeclarationArgsCE.java">
            <message kind="error" line="29"/>
            <message kind="error" line="30"/>
            <message kind="error" line="31"/>
            <message kind="error" line="32"/>
            <message kind="error" line="33"/>
            <message kind="error" line="34"/>
            <message kind="error" line="35"/>
            <message kind="error" line="37"/>
            <message kind="error" line="38"/>
            <message kind="error" line="39"/>
            <message kind="error" line="40"/>
            <message kind="error" line="42"/>
            <message kind="error" line="44"/>
            <message kind="error" line="45"/>
            <message kind="error" line="46"/>
            <message kind="error" line="47"/>
            <message kind="error" line="49"/>
            <message kind="error" line="50"/>
            <message kind="error" line="53"/>
        </compile>
    </ajc-test>
</suite>