aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/resources/org/aspectj/systemtest/ajc1612/ajc1612.xml
blob: 11049dcf96923dac9733fffcfd2ad5d0be406e59 (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
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>

<suite>

 <ajc-test dir="bugs1612/pr327141" title="classcast">
     <compile files="AspectWithConstant.aj" options="-1.5"/>
     <run class="AspectWithConstant">
     <stdout>
     <line text="MAX=9"/>
     <line text="@AspectWithConstant$Loggable()"/>
     </stdout></run>
   </ajc-test>

 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice">
     <compile files="Hello.java JavaHelper.java"/>
     <run class="Hello" ltw="aop.xml">
       <stdout>
           <line text="Hello"/>
           <line text="in advice"/>
           <line text="World"/>
       </stdout>
     </run>
   </ajc-test>

 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 2">
     <compile files="Hello.java JavaHelper.java"/>
     <run class="Hello" ltw="aop2.xml" usefullltw="true">
       <stdout>
           <line text="Hello"/>
           <line text="World"/>
       </stdout>
       <stderr>
       <line text="info AspectJ Weaver"/>
       <line text="info register classloader"/>
       <line text="info using config"/>
       <line text="info define aspect"/>
       <line text="error Class to invoke cannot be found: 'com.DoesNotExist'"/>
       <line text="info weaver operating"/>
       </stderr>
     </run>
   </ajc-test>

 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 3">
     <compile files="Hello.java JavaHelper.java"/>
     <run class="Hello" ltw="aop3.xml" usefullltw="true">
       <stdout>
           <line text="Hello"/>
           <line text="World"/>
       </stdout>
       <stderr>
       <line text="info AspectJ Weaver"/>
       <line text="info register classloader"/>
       <line text="info using config"/>
       <line text="info define aspect"/>
       <line text="error Cannot find type specified as parameter: 'String' from signature '(String)'"/>
       <line text="info weaver operating"/>
       </stderr>
     </run>
   </ajc-test>

 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 4">
     <compile files="Hello.java JavaHelper.java"/>
     <run class="Hello" ltw="aop4.xml" usefullltw="true">
       <stdout>
           <line text="Hello"/>
           <line text="World"/>
       </stdout>
       <stderr>
       <line text="info AspectJ Weaver"/>
       <line text="info register classloader"/>
       <line text="info using config"/>
       <line text="info define aspect"/>
       <line text="error Cannot find type specified as parameter: 'java.lang.String:List' from signature '(java.lang.String:List)'"/>
       <line text="info weaver operating"/>
       </stderr>
     </run>
   </ajc-test>


 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 5">
     <compile files="Hello2.java JavaHelper.java"/>
     <run class="Hello2" ltw="aop5.xml" usefullltw="true">
       <stdout>
           <line text="hello"/>
           <line text="in advice: s=world"/>
           <line text="world"/>
       </stdout>
     </run>
   </ajc-test>


 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 6">
     <compile files="Hello2.java JavaHelper.java"/>
     <run class="Hello2" ltw="aop6.xml" usefullltw="true">
       <stdout>
           <line text="hello"/>
           <line text="in advice: s=world"/>
           <line text="world"/>
           <line text="in advice3: s=world"/>
       </stdout>
     </run>
   </ajc-test>

 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 7">
     <compile files="Hello2.java JavaHelper.java"/>
     <run class="Hello2" ltw="aop7.xml" usefullltw="true">
       <stdout>
           <line text="hello"/>
           <line text="in advice4: s=world at execution(int Hello2.say2(String))"/>
           <line text="world"/>
           <line text="in advice5: s=world at execution(int Hello2.say2(String))"/>
       </stdout>
     </run>
   </ajc-test>

 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 8">
     <compile files="Hello2.java JavaHelper.java"/>
     <run class="Hello2" ltw="aop8.xml" usefullltw="true">
       <stdout>
           <line text="hello"/>
           <line text="in advice6: s=world at execution(int Hello2.say2(String))"/>
           <line text="world"/>
           <line text="in advice7: s=world at execution(int Hello2.say2(String))"/>
       </stdout>
     </run>
   </ajc-test>

 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 9">
     <compile files="Hello2.java JavaHelper.java"/>
     <run class="Hello2" ltw="aop9.xml" usefullltw="true">
       <stdout>
           <line text="in around advice: s=hello at execution(void Hello2.say1(String))"/>
       </stdout>
     </run>
   </ajc-test>

 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 10">
     <compile files="Hello2.java JavaHelper.java"/>
     <run class="Hello2" ltw="aop10.xml" usefullltw="true">
       <stdout>
           <line text="hello"/>
           <line text="in around2 advice: s=world at execution(int Hello2.say2(String))"/>
       </stdout>
     </run>
   </ajc-test>

 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 11">
     <compile files="Hello2.java JavaHelper.java"/>
     <run class="Hello2" ltw="aop11.xml" usefullltw="true">
       <stdout>
           <line text="hello"/>
           <line text="abcde"/>
       </stdout>
     </run>
   </ajc-test>

 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 12">
     <compile files="Hello3.java JavaHelper.java"/>
     <run class="Hello3" ltw="aop12.xml" usefullltw="true">
       <stdout>
           <line text="hello"/>
           <line text="around4 running"/>
           <line text="abcde"/>
           <line text="from say2=xyz"/>
       </stdout>
     </run>
   </ajc-test>

 <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 13">
     <compile files="Hello2.java JavaHelper2.java"/>
     <run class="Hello2" ltw="aop13.xml" usefullltw="true">
       <stdout>
           <line text="in advice"/>
           <line text="hello"/>
           <line text="in advice"/>
           <line text="world"/>
       </stdout>
     </run>
   </ajc-test>

<ajc-test dir="bugs1612/pr354470" title="perthis too pervasive">
<compile files="Code.java" options="-1.5"/>
<run class="Code">
<stdout>
	<line text="AAA"/>
	<line text="BBB"/>
	<line text="CCC"/>
	<line text="interface Code$ajcMightHaveAspect"/>
	<line text="private transient Code CCC.ajc$Code$perObjectField"/>
</stdout></run>
</ajc-test>

<ajc-test dir="bugs1612/pr354470" title="perthis too pervasive 2">
<compile files="Code2.java" options="-1.5"/>
<run class="Code2">
<stdout>
	<line text="execution(void CCC.m())"/>
</stdout></run>
</ajc-test>

<ajc-test dir="bugs1612/pr354470" title="perthis too pervasive 3">
<compile files="Code3.java" options="-1.5"/>
<run class="Code3">
<stdout>
	<line text="execution(void CCC.m())"/>
</stdout></run>
</ajc-test>

<ajc-test dir="bugs1612/prx" title="class reference in annotation value">
<compile files="C.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'field-get(int C.i)' in Type 'C' (C.java:17) advised by before advice from 'X' (C.java:22)"/>
</compile>
<run class="C">
</run>
</ajc-test>

<ajc-test dir="bugs1612/prx" title="annotation values not equal">
<compile files="D.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'field-get(int D.i)' in Type 'D' (D.java:20) advised by before advice from 'X' (D.java:26)"/>
<message kind="weave" text="Join point 'field-get(int D.j)' in Type 'D' (D.java:21) advised by before advice from 'X' (D.java:26)"/>
</compile>
<run class="D">
</run>
</ajc-test>

<ajc-test dir="bugs1612/prx" title="class reference in annotation value 3">
<compile files="E.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'field-get(int E.i)' in Type 'E' (E.java:17) advised by before advice from 'X' (E.java:22)"/>
</compile>
<run class="E">
</run>
</ajc-test>

<ajc-test dir="bugs1612/prx" title="annotation values not equal 2">
<compile files="F.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'field-get(int F.i)' in Type 'F' (F.java:20) advised by before advice from 'X' (F.java:26)"/>
<message kind="weave" text="Join point 'field-get(int F.j)' in Type 'F' (F.java:21) advised by before advice from 'X' (F.java:26)"/>
</compile>
<run class="F">
</run>
</ajc-test>


<ajc-test dir="bugs1612/prx" title="class reference in annotation value - invalid typename">
<compile files="G.java" options="-1.5">
<message kind="error" text="Unable to resolve type 'Foo.class' specified for value 'value'"/>
</compile>
</ajc-test>

<ajc-test dir="bugs1612/pr356612" title="annotation field binding optimization">
<compile files="AnnoBinding.java" options="-1.5"/>
<run class="AnnoBinding">
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr356612" title="annotation field binding optimization - 2">
<compile files="AnnoBinding2.java" options="-1.5"/>
<run class="AnnoBinding2">
<stdout>
<line text="get(int AnnoBinding2.field1) @Marker(message=foo)" vm="1.2,1.3,1.4,1.5,1.6,1.7,1.8"/>
<line text="get(int AnnoBinding2.field1) @Marker(message=&quot;foo&quot;)" vm="9+"/>
<line text="get(int AnnoBinding2.field2) @Marker(message=bar)" vm="1.2,1.3,1.4,1.5,1.6,1.7,1.8"/>
<line text="get(int AnnoBinding2.field2) @Marker(message=&quot;bar&quot;)" vm="9+"/>
<line text="2 ajc$anno$NNN fields"/>
</stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr354683" title="itd split compilation">
<compile files="util/CommonData.java util/CommonDataImpl.java util/CommonDataImplementation.aj util/DerivedCommonDataInterface.java util/DerivedCommonDataInterfaceImpl.java util/DerivedCommonDataInterfaceImplementation.aj" options="-1.5" outjar="code.jar"/>
<compile files="main/AbstractBaseClass.java main/DerivedClass.java main/Whatever.java " options="-1.5" aspectpath="code.jar"/>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 1">
<compile files="One.java" options="-1.5"/>
<run class="One">
  <stdout>
  <line text="In instance check method doit()"/>
  <line text="In advice()"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 2">
<compile files="Two.java" options="-1.5"/>
<run class="Two">
  <stdout>
  <line text="In instance check method, count=1 so doit returns false"/>
  <line text="Method m() running"/>
  <line text="In instance check method, count=2 so doit returns true"/>
  <line text="In advice()"/>
  <line text="Method m() running"/>
  <line text="In instance check method, count=3 so doit returns false"/>
  <line text="Method m() running"/>
  <line text="In instance check method, count=4 so doit returns true"/>
  <line text="In advice()"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 3">
<compile files="Three.java" options="-1.5"/>
<run class="Three">
  <stdout>
  <line text="Method m() running"/>
  <line text="In instance check method, count=1 so doit returns false"/>
  <line text="Method m() running"/>
  <line text="In instance check method, count=2 so doit returns true"/>
  <line text="In advice()"/>
  <line text="Method m() running"/>
  <line text="In instance check method, count=3 so doit returns false"/>
  <line text="Method m() running"/>
  <line text="In instance check method, count=4 so doit returns true"/>
  <line text="In advice()"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 4">
<compile files="Four.java" options="-1.5"/>
<run class="Four">
  <stdout>
  <line text="In instance check method doit()"/>
  <line text="In advice() execution(void Four.m())"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 5">
<compile files="Five.java" options="-1.5"/>
<run class="Five">
  <stdout>
  <line text="In instance check method doit()"/>
  <line text="In advice() arg0=abc"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 6">
<compile files="Six.java" options="-1.5"/>
<run class="Six">
  <stdout>
  <line text="In instance check method doit()"/>
  <line text="In advice() execution(void Six.main(String[]))"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 7">
<compile files="Seven.java" options="-1.5"/>
<run class="Seven">
  <stdout>
  <line text="In instance check method doit()"/>
  <line text="In advice() call(void Seven.m()) execution(void Seven.main(String[]))"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 8">
<compile files="Eight.java" options="-1.5"/>
<run class="Eight">
  <stdout>
  <line text="in doit(): class=X"/>
  <line text="In advice()"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 9">
<compile files="Nine.java" options="-1.5"/>
<run class="Nine">
  <stdout>
  <line text="in doit(): class=X"/>
  <line text="In advice()"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 10">
<compile files="Ten.java" options="-1.5"/>
<run class="com.foo.bar.Ten">
  <stdout>
  <line text="In instance check method doit() class=com.foo.bar.X"/>
  <line text="In advice()"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 11">
<compile files="Eleven.java" options="-1.5">
<message kind="error" text="thisAspectInstance can only be used inside an if() clause for singleton aspects (compiler limitation)"/>
</compile>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 12">
<compile files="Twelve.java" options="-1.5"/>
<run class="Twelve">
  <stdout>
  <line text="In instance check method doit()"/>
  <line text="In advice() arg=abc tjpsp=execution(void Twelve.m(String))"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 13">
<compile files="Thirteen.java" options="-1.5"/>
<run class="Thirteen">
  <stdout>
  <line text="instance is X"/>
  <line text="In advice() arg=abc tjpsp=execution(void Thirteen.m(String))"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 14">
<compile files="Fourteen.java" options="-1.5"/>
<run class="Fourteen">
  <stdout>
  <line text="instance is X"/>
  <line text="In advice()"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 15">
<compile files="Fifteen.java" options="-1.5"/>
<run class="Fifteen">
  <stdout>
  <line text="in doit(): class=X"/>
  <line text="In advice()"/>
  <line text="Method m() running"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/doubleITDF" title="double itdf">
<compile files="A.java" options="-1.7"/>
<run class="A">
  <stdout>
  <line text="AA"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/verify" title="verify perthis">
<compile files="Runner.aj" inpath="code.jar" classpath="groovy-1.8.0.jar,asm-3.2.jar" options="-1.6 -Xset:generateStackMaps=true"/>
<run class="Runner">
  <stdout>
  <line text="AA"/>
  </stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr353936" title="local variable tables">
<compile files="Code.java" options="-1.5"/>
</ajc-test>

<ajc-test dir="bugs1612/pr352363" title="empty pattern">
<compile files="Code.java" options="-1.5">
  <message line="12" kind="warning" text="name is empty1"/>
  <message line="13" kind="warning" text="name is empty2"/>
</compile>
</ajc-test>

<ajc-test dir="bugs1612/pr351592" title="generics issue">
<compile files="Test.java Fib.java FibCaching.aj Caching.aj" options="-1.5"/>
<run class="caching.Test"/>
</ajc-test>

<ajc-test dir="bugs1612/pr351592" title="generics issue - 2">
<compile files="Test.java Fib.java FibCaching.aj Caching.aj" options="-1.5"/>
<run class="caching.Test"/>
</ajc-test>

<ajc-test dir="bugs1612/pr350800" title="generics npe">
<compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
<!--  run class="com.example.MyAspectTest" -->
</ajc-test>

<ajc-test dir="bugs1612/pr350800_2" title="generics npe - code">
<compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
<!--  run class="com.example.MyAspectTest" -->
</ajc-test>

<ajc-test dir="bugs1612/pr350800_3" title="generics npe - 3">
<compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
<run class="test.aop.Adapter">
<stdout>
<line text="&gt;hello"/>
</stdout>
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr349961" title="ordering">
<compile files="MyParameterAnnotation.java MyAspect.java MyAspectTest.java A.java ABean.java" options="-1.5"/>
<run class="com.example.MyAspectTest">
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr349961" title="ordering - 2">
<compile files="MyParameterAnnotation.java MyAspect.java MyAspectTest.java ABean.java A.java" options="-1.5"/>
<run class="com.example.MyAspectTest">
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr347395" title="verifyerror - inline">
<compile files="Target.java Task.java TaskHistoryAspect.aj TaskModification.java" options="-1.5"/>
<run class="xxx.util.Target">
</run>
</ajc-test>

<ajc-test dir="bugs1612/pr349398" title="duplicate methods">
<compile files="DataGenerator.java CacheAspect.java DataGeneratorCacheAspect.java DataGeneratorTest.java" options="-1.5"/>
<run class="DataGeneratorTest">
</run>
</ajc-test>


<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"/>
</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"/>
</ajc-test>

<ajc-test dir="bugs1612/pr335810" title="rawtype warning">
<compile files="One.java" options="-1.5 -warn:+raw -warn:+unchecked -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>