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
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
|
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
<!-- AspectJ v1.5.0 Tests -->
<suite>
<ajc-test dir="java5/staticImports" title="import static java.lang.System.out">
<compile files="StaticImport.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" title="Problem with constructor ITDs">
<compile files="pr112783.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" title="ITDC with no explicit cons call">
<compile files="Pr62606.aj" options="-1.5">
<message kind="warning" line="6" text="[Xlint:noExplicitConstructorCall]"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/bugs" title="using same type variable in ITD">
<compile files="SameTypeVariable.aj" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="bugs150" title="capturebinding wildcard problem">
<compile files="pr114744.aj" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr86903" title="bcelrenderer bad">
<compile files="GenericService.java,Service.java,Main.java,BadWormhole.java"/>
<run class="Main"/>
</ajc-test>
<ajc-test dir="bugs150/pr114343" title="field-get, generics and around advice">
<compile files="Test.java,Test1.java,Test2.java,TestAspect.aj" options="-1.5">
<message kind="warning" line="7" text="unchecked conversion when advice applied at shadow field-get(java.util.Set Test1.intsSet), expected java.util.Set<java.lang.Integer> but advice uses java.util.Set"/>
<message kind="warning" line="8" text="unchecked conversion when advice applied at shadow field-get(java.util.Set Test2.doubSet), expected java.util.Set<java.lang.Double> but advice uses java.util.Set"/>
</compile>
<run class="TestAspect"/>
</ajc-test>
<ajc-test dir="bugs150/pr113947/case1" title="maws generic aspect - 1">
<compile files="AbstractListSupport.java,AnotherItem.java,Item.java,LinkedList.java,LinkedListItem.java,ListItem.java,StringList.java" options="-1.5">
<!-- the 'static ref' messages are a bit poor and ought to be eliminated... -->
<message kind="error" line="6" text="Cannot make a static reference to the non-static type M"/>
<message kind="error" line="6" text="Cannot make inter-type declarations on type variables"/>
<message kind="error" line="8" text="Cannot make a static reference to the non-static type I"/>
<message kind="error" line="8" text="Cannot make inter-type declarations on type variables"/>
<message kind="error" line="12" text="Cannot make a static reference to the non-static type M"/>
<message kind="error" line="12" text="Cannot make inter-type declarations on type variables"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr114343/case2" title="field-get, generics and around advice - 2">
<compile files="Test.java,TTT.java,TestAspect.java" options="-1.5"/>
<run class="TestAspect">
<stderr>
<line text="TestAspect.main: Calling foo"/>
<line text="Creating Test<Integer> instance"/>
<line text="Calling toArray"/>
<line text="In around advice"/>
<line text="In toArray()"/>
<line text="done"/>
<line text="TestAspect.main: done"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr114343/case3" title="field-get, generics and around advice - 3">
<compile files="Test.java,TTT.java,TestAspect.java" options="-1.5"/>
<run class="TestAspect">
<stderr>
<line text="TestAspect.main: Calling foo"/>
<line text="Creating Test<Integer> instance"/>
<line text="Calling toArray"/>
<line text="In around advice"/>
<line text="In toArray()"/>
<line text="done"/>
<line text="Creating Test<Integer> instance"/>
<line text="Calling getFirst"/>
<line text="around on getFirstExec(): running"/>
<line text="done"/>
<line text="TestAspect.main: done"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr113947/case2" title="maws generic aspect - 2">
<compile files="AbstractListSupport.java,AnotherItem.java,Item.java,LinkedList.java,LinkedListItem.java,ListItem.java,StringList.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150/pr113861" title="field-get problems with generic field">
<compile files="Test.java,TestAspect.java" options="-1.5"/>
<run class="com.Test"/>
</ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 1">
<compile files="pr99191_1.java" options="-1.5">
<message kind="error" line="4" text="The field 'int C.noSuchField' does not exist"/>
<message kind="error" line="5" text="The field 'int B.noSuchField' does not exist"/>
</compile>
</ajc-test>
<!-- Currently a warning doesn't occur if the annotation is already on the field
(see bug 113029). If this is fixed, need to add check for this warning to this
test as in test "declare annotation on non existent type - 4" -->
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 2">
<compile files="pr99191_2.java" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 3">
<compile files="pr99191_3.java" options="-1.5">
<message kind="error" line="4" text="The method 'public * C.noSuchMethod(..)' does not exist"/>
<message kind="error" line="5" text="The method '* B.noSuchMethod(..)' does not exist"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 4">
<compile files="pr99191_4.java" options="-1.5">
<message kind="warning" text="void C.amethod() - already has an annotation of type Annotation, cannot add a second instance [Xlint:elementAlreadyAnnotated]"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 5">
<compile files="pr99191_5.java" options="-1.5">
<message kind="error" line="4" text="The method 'C.new(java.lang.String)' does not exist"/>
<message kind="error" line="5" text="The method 'B.new(int)' does not exist"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr99191" title="declare annotation on non existent type - 6">
<compile files="pr99191_6.java" options="-1.5">
<message kind="warning" text="void C.<init>(int) - already has an annotation of type Annotation, cannot add a second instance [Xlint:elementAlreadyAnnotated]"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr113630/case1" title="IncompatibleClassChangeError - errorscenario">
<compile files="Bean.java,BeanTestCase.java,javaBean.java,propertyChanger.java,PropertySupportAspect5.aj" options="-1.5">
<message kind="warning" line="9" text="Failing match because annotation 'javaBean' on type 'Bean' has SOURCE retention. Matching allowed when RetentionPolicy is CLASS or RUNTIME"/>
<message kind="error" line="18" text="The method addPropertyChangeListener(String, BeanTestCase) is undefined for the type Bean"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr113630/case2" title="IncompatibleClassChangeError - workingscenario">
<compile files="Bean.java,BeanTestCase.java,javaBean.java,propertyChanger.java,PropertySupportAspect5.aj" options="-1.5"/>
<run class="BeanTestCase"/>
</ajc-test>
<ajc-test dir="bugs150" title="Generics ClassCastException">
<compile files="pr113445.aj" options="-1.5,-emacssym"/>
</ajc-test>
<ajc-test dir="bugs150" title="test illegal change to pointcut declaration">
<compile files="pr111915.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void SomeClass.doSomething())' in Type 'SomeClass' (pr111915.java:4) advised by around advice from 'DoesntCompile' (pr111915.java:15)"/>
<message kind="weave" text="Extending interface set for type 'SomeClass' (pr111915.java) to include 'java.io.Serializable' (pr111915.java)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/bridgeMethods" pr="72766" title="Ignore bridge methods">
<compile files="AspectX.aj" inpath="testcode.jar" options="-showWeaveInfo">
<!-- <message kind="warning" line="7" text="pointcut did not match on the method call to a bridge method."/>
<message kind="warning" line="7" text="does not match because declaring type is Number"/>-->
<message kind="weave" text="(AspectX.aj:18) advised by before advice from 'AspectX'"/>
<message kind="weave" text="(AspectX.aj:19) advised by before advice from 'AspectX'"/>
<message kind="weave" text="(Number.java:5) advised by before advice from 'AspectX'"/>
</compile>
</ajc-test>
<ajc-test title="intermediate annotation matching" dir="bugs150">
<compile files="AnnotationPlusPatternMatchingError.aj" options="-1.5">
<message kind="warning" line="28" text="matched"/>
</compile>
<run class="AnnotationPlusPatternMatchingError">
<stdout>
<line text="In advice"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="migration" title="load aspectj 1.2.1 aspects in aspectj 5">
<compile files="Program.java" aspectpath="aspects121.jar">
</compile>
<run class="Program"/>
</ajc-test>
<ajc-test dir="bugs/java5/arrayCloning" pr="72150" vm="1.5"
title="AJC possible bug with static nested classes">
<compile files="A.java,C.java" options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'C' (C.java:14) advised by around advice from 'A' (A.java:2)"/>
</compile>
<run class="C"/>
</ajc-test>
<ajc-test dir="java5/pseudoKeywords"
title="method called around in class">
<compile files="MethodCalledAround.java">
</compile>
</ajc-test>
<ajc-test dir="java5/pseudoKeywords"
title="method called around in aspect">
<compile files="MethodCalledAroundAspect.java">
<message kind="error" line="2"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="64568" title="clear error message on itd with type pattern">
<compile files="pr64568.aj">
<message line="4" kind="error" text="Syntax error on token "*", delete this token"/>
<message line="4" kind="error" text="foo cannot be resolved to a type"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="74562" title="before and after are valid identifiers in classes">
<compile files="pr74562.aj">
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="107486" title="anonymous inner classes">
<compile files="pr107486.aj">
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="102210" title="NullPointerException trying to compile">
<compile files="PR102210.java"/>
<run class="PR102210">
<stderr>
<line text="List size is 1"/>
<line text="m1 running"/>
<line text="List size is 2"/>
<line text="m2 running"/>
<line text="List size is 3"/>
<line text="m3 running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="bugs150" pr="107486" title="multiple anonymous inner classes">
<compile files="pr107486part2.aj">
</compile>
<run class="pr107486part2">
<stdout>
<line text="[advised] f"/>
<line text="[advised] g"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150" pr="91114" title="before and after are valid identifiers in classes, part 2">
<compile files="pr91114.aj">
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="78621" title="void field type in pointcut expression">
<compile files="pr78261.aj">
<message line="3" kind="error" text="fields cannot have a void type"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="86057" title="overriding final pointcut from super-aspect">
<compile files="pr86057.aj">
<message line="9" kind="error" text="can't override final pointcut Base.foo()"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="78707" title="before returning advice not allowed!">
<compile files="pr78707.aj">
<message line="3" kind="error" text="Syntax error on token "returning", delete this token"/>
<message line="3" kind="error" text="Syntax error on token "throwing", delete this token"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="104529" title="@SuppressWarnings should suppress">
<compile files="pr104529.aj" options = "-1.5 -warn:+unchecked">
<message line="11" kind="warning" text="needs unchecked conversion"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="79523" title="declare warning : foo(str) : ...;">
<compile files="pr79523.aj">
<message line="4" kind="warning" text="no match for this type name: str"/>
<message line="4" kind="error" text="bad parameter"/>
<message line="4" kind="error" text="args() pointcut designator cannot be used in declare statement"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="107059" title="parser crashes on call(void (@a *)(..)">
<compile files="pr107059.aj">
<message line="3" kind="error" text="Syntax error on token "(", "name pattern" expected"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="107059" title="target(@Foo *)">
<compile files="pr107059_2.aj" options="-1.5">
<message kind="error" line="4" text="wildcard type pattern not allowed"></message>
</compile>
</ajc-test>
<ajc-test dir="bugs150" title="varargs with type variable">
<compile files="ParameterizedVarArgMatch.aj" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="108104" title="multiple anonymous inner classes 2">
<compile files="pr108104.aj" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="108050" title="signature matching in override scenario">
<compile files="pr108050.aj" options="-1.5">
<message kind="warning" line = "2" text="servlet request"></message>
<message kind="warning" line = "7" text="servlet request"></message>
<message kind="warning" line = "21" text="servlet request"></message>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr108425" pr="108245" title="wildcard annotation matching - pr108245">
<compile files="package1/Bean.java,package2/Bean.java,package2/propertyChanger.java,package3/pr108425.aj" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="bugs150/" pr="108104" title="inner types and type variables">
<compile files="ShapeCommandMap.java" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="bugs150/" pr="107953" title="@AfterThrowing with no formal specified">
<compile files="pr107953.java" options="-1.5">
<message kind="error" line="8" text="throwing formal 'RuntimeException' must be declared as a parameter in the advice signature"></message>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr106130" pr="106130" title="test weaving with > 256 locals">
<compile files="AroundLotsOfVars.java LotsOfVars.java" options="-preserveAllLocals"/>
<run class="LotsOfVars">
<stdout>
<line text="hello"/>
<line text="2"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr87376" title="structure model npe on type not found">
<compile files="I.java,NPE.aj" options="-emacssym">
<message kind="error" line="8" text="I cannot be resolved to a type"/>
<message kind="error" line="10" text="I cannot be resolved to a type"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="83311" title="overriding/polymorphism error on interface method introduction">
<compile files="pr83311.aj"/>
</ajc-test>
<ajc-test dir="bugs150" pr="103266" title="NPE on syntax error">
<compile files="pr103266.aj">
<message kind="error" line="41" text="ConnectionRequestContext cannot be resolved to a type"/>
</compile>
</ajc-test>
<ajc-test title="itd override with no exception clause" dir="bugs150">
<compile files="pr83377.aj"></compile>
</ajc-test>
<ajc-test dir="bugs150/pr84260" vm="1.5" title="static import failures">
<compile files="A.java,I1.java,I2.java" options="-1.5"/>
<run class="I1">
<stderr>
<line text="static method running"/>
</stderr>
</run>
<run class="I2">
<stderr>
<line text="static method running"/>
</stderr>
</run>
</ajc-test>
<ajc-test title="anonymous inner class with method returning type parameter" pr="107898" dir="bugs150">
<compile files="pr107898.aj" options="-1.5"></compile>
</ajc-test>
<ajc-test title="matching against Object[]" pr="72668" dir="bugs150">
<compile files="pr72668.aj" options="-1.5">
<message kind="error" line="3" text="incompatible return type applying to method-execution(java.lang.Number[] pr72668.getThoseInts())"></message>
<message kind="error" line="10" text="incompatible return type applying to method-execution(java.lang.Number[] pr72668.getThoseInts())"></message>
</compile>
</ajc-test>
<ajc-test dir="decp" pr="80249" title="Order of types passed to compiler determines weaving behavior">
<compile files="A.java,B.java,AspectX.java"/>
<run class="B"/>
<compile files="B.java,A.java,AspectX.java"/>
<run class="B"/>
</ajc-test>
<ajc-test dir="bugs150" pr="99228" vm="1.5" title="ITD of a field into a generic class">
<compile files="PR99228.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" pr="98320" vm="1.5" title="intertype with nested generic type">
<compile files="PR98320.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="decs" pr="42743" title="declare soft of runtime exception">
<compile files="DeclareSoftRuntimeException.aj">
<message kind="warning" line="3" text="MyRuntimeException will not be softened as it is already a RuntimeException"/>
</compile>
<run class="DeclareSoftRuntimeException">
<stdout>
<line text="MyRuntimeException"/>
<line text="org.aspectj.lang.SoftException"/>
<line text="MyRuntimeException"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="decs" pr="42743" title="declare soft w. catch block">
<compile files="VerifyError.aj">
</compile>
<run class="VerifyError"/>
</ajc-test>
<ajc-test dir="bugs" pr="61568" title="Various kinds of ambiguous bindings">
<compile files="AmbiguousBindings.aj">
<message line="17" text="ambiguous binding of parameter(s) foo across '||' in pointcut"></message>
<message line="19" text="ambiguous binding of parameter(s) foo across '||' in pointcut"></message>
<message line="21" text="ambiguous binding of parameter(s) foo across '||' in pointcut"></message>
<message line="23" text="ambiguous binding of parameter(s) x across '||' in pointcut"></message>
<message line="25" text="ambiguous binding of parameter(s) foo across '||' in pointcut"></message>
</compile>
</ajc-test>
<ajc-test dir="bugs" pr="61658" title="ambiguous args">
<compile files="PR61658.java">
<message line="17" text="ambiguous binding of parameter(s) a, b across '||' in pointcut"></message>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="78021" title="Injecting exception into while loop with break statement causes catch block to be ignored">
<compile files="PR78021.java"/>
<run class="PR78021"/>
</ajc-test>
<ajc-test dir="bugs150/pr99089" vm="1.5" pr="99089" title="ArrayIndexOutOfBoundsException - Generics in privileged aspects">
<compile files="DataClass.java,TracingAspect.java" options="-1.5"/>
<run class="DataClass">
<stderr>
<line text="before:Length of v=1"/>
<line text="after:Length of v=2"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="bugs150" pr="79554" title="Return in try-block disables catch-block if final-block is present">
<compile files="PR79554.java"/>
<run class="PR79554"/>
</ajc-test>
<ajc-test dir="bugs150" pr="82570" title="Weaved code does not include debug lines">
<compile files="PR82570_1.java"/>
</ajc-test>
<ajc-test dir="bugs150" pr="83303" title="compiler error when mixing inheritance, overriding and polymorphism">
<compile files="PR83303.java"/>
</ajc-test>
<ajc-test dir="bugs150" pr="83563" title="pertypewithin() handing of inner classes (1)">
<compile files="PR83563_1.java"/>
<run class="PR83563_1"/>
</ajc-test>
<ajc-test dir="bugs150" pr="83563" title="pertypewithin() handing of inner classes (2)">
<compile files="PR83563_2.java"/>
<run class="PR83563_2"/>
</ajc-test>
<ajc-test dir="bugs150" pr="83645" title="pertypewithin({interface}) illegal field modifier">
<compile files="PR83645.java"/>
<run class="PR83645"/>
</ajc-test>
<ajc-test dir="bugs150" title="bad asm for enums" vm="1.5">
<compile files="Rainbow.java" options="-emacssym,-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" pr="10461" title="missing name pattern">
<compile files="PR106461.aj">
<message kind="error" line="3" text="Syntax error on token "(", "name pattern" expected"/>
<message kind="error" line="5" text="Syntax error on token ")", "name pattern" expected"/>
<message kind="error" line="7" text="Syntax error on token ".", "name pattern" expected"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="106634" title="IllegalStateException unpacking signature of nested parameterized type">
<compile files="pr106634.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" title="(@Foo *)+ type pattern parse error">
<compile files="AnnotationPlusPatternParseError.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" pr="80571" title="around advice on interface initializer">
<compile files="pr80571.aj"/>
<run class="pr80571">
<stdout>
<line text="before"/>
<line text="after"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150" pr="78314" title="good error message for unmatched member syntax">
<compile files="pr78314.aj" options="-1.5">
<message kind="error" line="5" text="Syntax error, insert "body""/>
<message kind="error" line="5" text="Syntax error on tokens, valid member declaration expected instead"/>
</compile>
<compile files="pr78314.aj">
<message kind="error" line="5" text="Syntax error, insert "body""/>
<message kind="error" line="5" text="Syntax error on tokens, valid member declaration expected instead"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="108377" title="itd field access inside itd method">
<compile files="pr108377.aj"/>
<run class="pr108377"/>
</ajc-test>
<ajc-test dir="bugs150/pr108054" pr="108054" title="type variable with type variable bound">
<compile files="pr108054.aj" options="-1.5"/>
<compile files="ISequence.java,ICounter.java,ASequence.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150/pr108370" pr="108370" title="switch on enum inside ITD method">
<compile files="et/Q.java" options="-1.5"/>
<compile files="EnumTest.aj" options="-1.5 -inpath et"/>
<run class="EnumTest">
<stdout>
<line text="B!"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150" pr="95992" title="inner type of generic interface reference from parameterized type">
<compile files="pr95992.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" pr="104024" title="inner class passed as argument to varargs method">
<compile files="pr104024.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" pr="107858" title="inlined field access in proceed call">
<compile files="pr107858.aj" options="-1.5">
<message kind="error" line="9" text="too many arguments to proceed, expected 0"></message>
<message kind="error" line="10" text="too many arguments to proceed, expected 0"></message>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr71159" pr="71159" title="visibility in signature matching with overrides - 1">
<compile files="pr71159.aj">
<message kind="warning" line="26" text="should match"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr71159" pr="71159" title="visibility in signature matching with overrides - 2">
<compile files="PrivateITD.aj">
<message kind="warning" line="28" text="should match"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr71159" pr="71159" title="visibility in signature matching with overrides - 3">
<compile files="pkg1/A.java,pkg1/B.java,pkg1/C.java,pkg2/ITDInDiffPackage.aj">
<message kind="warning" line="10" text="should match"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="59196" title="args generated correctly for advice execution join point">
<compile files="pr59196.aj" options="-XnoInline -1.5"/>
</ajc-test>
<ajc-test dir="bugs150" pr="74048" title="no unused warnings on aspect types">
<compile files="pr74048.aj" options="-warn:unusedPrivate"/>
</ajc-test>
<ajc-test dir="bugs150" pr="59397" title="synthetic arguments on itd cons are not used in matching">
<compile files="pr59397.aj">
<message line="6" kind="warning" text="should match"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="108602" title="parse generic type signature with parameterized type in interface">
<compile files="pr108602.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" pr="105479" title="declare parents introducing override with covariance">
<compile files="pr105479.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" pr="105479" title="override and covariance with decp - runtime">
<compile files="pr105479part2.aj" options="-1.5"/>
<run class="pr105479part2">
<stdout>
<line text="in Test.hashCode()"/>
<line text="in Test.hashCode()"/>
<line text="id"/>
<line text="in Test.hashCode()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr105479/case1" pr="105479" title="override and covariance with decp - runtime separate files">
<compile files="ReturnTypeTest.aj,ReturnTypeTester.java,Driver.java" options="-1.5"/>
<run class="Driver">
<stdout>
<line text="in Test.hashCode()"/>
<line text="in Test.hashCode()"/>
<line text="id"/>
<line text="in Test.hashCode()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr105479/case2" pr="105479" title="override and covariance with decp - binary weaving">
<compile files="ReturnTypeTest.java" outjar="jar1.jar" options="-1.5 -Xlint:ignore"/>
<compile files="ReturnTypeTester.java" outjar="jar2.jar" options="-1.5"/>
<compile inpath="jar1.jar;jar2.jar" options="-1.5"/>
<run class="ReturnTypeTester"/>
</ajc-test>
<ajc-test dir="bugs150" pr="102212" title="abstract synchronized itdms not detected">
<compile files="pr102212.aj">
<message line="7" kind="error" text="The abstract method _abstract in type Parent can only set a visibility modifier, one of public or protected"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="102212" title="synchronized itd interface methods">
<compile files="SynchronizedInterfaceMethods.aj" options="-1.5">
</compile>
<run class="SynchronizedInterfaceMethods"/>
</ajc-test>
<ajc-test dir="bugs150" pr="101606" title="unused private pointcuts">
<compile files="pr101606.aj" options="-warn:unusedPrivate">
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr99125" pr="99125" title="itd interface method already existing on interface">
<compile files="p/pr99125.aj,p/I.java,p/J.java" options="-1.5">
</compile>
<compile files="Aspects.aj" options="-inpath p"/>
<run class="p.pr99125"/>
<compile files="p2/pr99125.aj,p/I.java,p/J.java"/> <!-- actually in package p, introduces incompatible change -->
<compile files="Aspects.aj" options="-inpath p">
<message kind="error" line="7" text="inter-type declaration from X conflicts with existing member"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr87530" pr="87530" title="final itd methods on interfaces">
<compile files="FinalITDMOnInterface.aj">
<message kind="error" line="12" text="Cannot override the final method from A.TestInterface"></message>
</compile>
<compile files="FinalITDMOnInterface2.aj">
<message kind="error" line="8" text="Cannot override the final method from A.TestInterface"></message>
<message kind="error" line="8" text="can't override final void A$TestInterface.m()"></message>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="108818" title="can't override private pointcut in abstract aspect">
<compile files="PrivatePointcutOverriding.aj">
<message kind="warning" line="19" text="matched join point from super advice"/>
<message kind="warning" line="21" text="matched join point from sub advice"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="108816" title="advising cflow advice execution">
<compile files="pr108816.aj" >
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr108902" pr="108902" title="no type mismatch on generic types in itds">
<compile files="Subject.java,Observer.java,ObserverProtocol.aj" >
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="108903" title="super call in ITD">
<compile files="pr108903.aj" >
<message kind="error" line="14" text="The method print() is undefined for the type Object"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="109042" title="no unused parameter warnings for synthetic advice args">
<compile files="pr109042.aj" options="-warn:+unusedArgument -warn:+unusedPrivate -warn:+unusedImport -1.5">
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="109486" title="Internal compiler error (ClassParser.java:242)">
<compile files="PR109486.java" >
<message kind="error" line="1" text="The class PR109486 can be either abstract or final, not both"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="109124" title="no verify error with set on inner type">
<compile files="VerifyErrorOnSet.aj" options="-1.5" >
</compile>
<run class="test.VerifyErrorOnSet"/>
<compile files="pr106874.aj" options="-1.5" >
</compile>
<run class="pr106874"/>
</ajc-test>
<ajc-test dir="bugs150" pr="108826" title="cant find type error with generic return type or parameter">
<compile files="pr108826.aj" options="-1.5 -emacssym" >
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="105181" title="no verify error on generic collection member access">
<compile files="pr105181.aj" options="-1.5">
</compile>
<run class="pr105181"/>
</ajc-test>
<ajc-test dir="bugs150/pr108903" pr="108903" title="super call in ITD - part 2">
<compile files="com/designpattern/decorator/HeaderDecorator.aj,com/designpattern/decorator/Main.java,com/designpattern/decorator/Order.java,com/designpattern/decorator/OrderDecorator.aj,com/designpattern/decorator/SalesOrder.java" options="-1.5" >
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr103740" pr="103740" title="Compiler failure on at_annotation">
<compile files="AroundAdvice.aj" options="-1.5,-showWeaveInfo">
<message kind="weave" text="Join point 'method-execution(void C.m1())' in Type 'C' (AroundAdvice.aj:12) advised by before advice from 'ErrorHandling' (AroundAdvice.aj:8)"/>
<message kind="weave" text="Join point 'method-execution(void C.m3())' in Type 'C' (AroundAdvice.aj:14) advised by before advice from 'ErrorHandling' (AroundAdvice.aj:8)"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr106554" pr="106554" title="Problem in staticinitialization with pertypewithin aspect">
<compile files="A.aj" options="-showWeaveInfo">
<message kind="weave" text="Join point 'staticinitialization(void A.<clinit>())' in Type 'A' (A.aj:1) advised by before advice from 'StopsInit' (A.aj:21)"/>
</compile>
<run class="A">
<stdout>
<line text="test = 1"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/SimpleInsuranceFailure" title="raw and generic type conversion with itd cons">
<compile files="" options=" -emacssym, -sourceroots ." >
</compile>
</ajc-test>
<ajc-test dir="bugs150" title="@annotation binding with around advice">
<compile files="AnnotationBinding.aj" options="-1.5"/>
<run class="AnnotationBinding"/>
</ajc-test>
<ajc-test dir="bugs150" title="declare parents on a missing type">
<compile files="Pr76374.aj" options="-1.5">
<message kind="warning" line="3" text="no match for this type name"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" title="parameterized generic methods">
<compile files="Pr109283.aj" options="-1.5 -warn:indirectStatic">
</compile>
</ajc-test>
<ajc-test dir="bugs150" title="call join points in anonymous inner classes">
<compile files="pr104229.aj" options="-1.5">
<message kind="warning" line="54" text="bingo"/>
<message kind="warning" line="115" text="bingo"/>
<message kind="warning" line="130" text="bingo"/>
</compile>
<run class="pr104229">
<stdout>
<line text="call match class pr104229"/>
<line text="OK it worked!"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150" title="default impl of Runnable">
<compile files="pr88900.aj" options="-Xdev:Pinpoint">
</compile>
</ajc-test>
<ajc-test dir="bugs150" title="array clone call join points in 1.4 vs 1.3">
<compile files="pr102933.aj" options="-1.3">
<message kind="warning" line="7" text="a call within pr102933"/>
</compile>
<compile files="pr102933.aj" options="-1.4">
<message kind="warning" line="7" text="a call within pr102933"/>
</compile>
<compile files="pr102933.aj" options="-1.5">
<message kind="warning" line="7" text="a call within pr102933"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="100195" title="debug info in around advice inlining">
<compile files="pr100195.aj">
</compile>
<run class="pr100195"/>
</ajc-test>
<ajc-test dir="bugs150/pr77269" title="advice in structure model with anonymous inner class">
<compile files="pack/pr77269.aj" options="-emacssym">
</compile>
</ajc-test>
<ajc-test dir="bugs150" title="advice in structure model with named inner class">
<compile files="pr77269b.aj" options="-emacssym">
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr77269" title="declare warning in structure model with anonymous inner class">
<compile files="pack/pr77269c.aj" options="-emacssym">
<message kind="warning" line="8" text="blah blah blah"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" title="weaveinfo message for declare at method on an ITDd method">
<compile files="pr113073.java" options="-1.5 -showWeaveInfo">
<message kind="weave" text="Type 'C' (pr113073.java) has intertyped method from 'D' (pr113073.java:'void C.anotherMethod()')"/>
<message kind="weave" text="'public void C.anotherMethod()' (pr113073.java) is annotated with @Annotation method annotation from 'B' (pr113073.java:3)"/>
<message kind="weave" text="Type 'C' (pr113073.java) has intertyped method from 'D' (pr113073.java:'void C.anotherMethod(java.lang.String)')"/>
<message kind="weave" text="'public void C.anotherMethod(String)' (pr113073.java) is annotated with @Annotation method annotation from 'B' (pr113073.java:3)"/>
<message kind="weave" text="Type 'C' (pr113073.java) has intertyped constructor from 'D' (pr113073.java:'void C."/>
<message kind="weave" text="'public void C.new(String)' (pr113073.java) is annotated with @Annotation constructor annotation from 'B' (pr113073.java:4)"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" title="no verify error with two this pcds">
<compile files="PR113447.java">
</compile>
<run class="PR113447"/>
</ajc-test>
<!-- ============================================================================ -->
<!-- ============================================================================ -->
<!-- atOverride tests with ITDs -->
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs">
<compile files="AtOverride.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs - 1">
<compile files="AtOverride1.aj" options="-1.5">
<message kind="error" line="9" text="The method method() of type Child must override a superclass method"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs - 2">
<compile files="AtOverride2.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs - 3">
<compile files="AtOverride3.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs - 4">
<compile files="AtOverride4.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs - 5">
<compile files="AtOverride5.aj" options="-1.5">
<message kind="error" line="11" text="The method method() of type Child must override a superclass method"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs - 6">
<compile files="AtOverride6.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" pr="106630" title="atOverride used with ITDs - 7">
<compile files="AtOverride7.aj" options="-1.5"/>
</ajc-test>
<!-- end of atOverride tests with ITDs -->
<ajc-test dir="../docs/dist/doc/examples/introduction" title="introduction sample" vm="1.5">
<compile files="CloneablePoint.java,ComparablePoint.java,HashablePoint.java,Point.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/varargs" title="varargs in constructor sig" vm="1.5">
<compile files="Pr88652.aj" options="-1.5">
<message kind="warning" line="8" text="should match"/>
<message kind="warning" line="9" text="should match"/>
</compile>
</ajc-test>
<ajc-test dir="java5/varargs" title="Varargs with .. in pointcut" vm="1.5">
<compile files="pr93356.aj" options="-1.5">
<message kind="warning" line="5" text="a"/>
<message kind="warning" line="5" text="b"/>
<message kind="warning" line="5" text="c"/>
<message kind="warning" line="5" text="d"/>
<message kind="warning" line="5" text="e"/>
<message kind="warning" line="5" text="k"/>
<message kind="warning" line="5" text="l"/>
<message kind="warning" line="4" text="f"/>
<message kind="warning" line="4" text="g"/>
<message kind="warning" line="4" text="h"/>
<message kind="warning" line="4" text="i"/>
<message kind="warning" line="4" text="j"/>
<message kind="warning" line="7" text="f"/>
</compile>
</ajc-test>
<ajc-test dir="java5/varargs" title="star varargs pattern" vm="1.5">
<compile files="StarVarargsPattern.aj" options="-1.5">
<message kind="warning" line="5" text="you used a varargs signature"/>
<message kind="warning" line="7" text="you used a varargs signature"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations" title="invalid cons syntax" vm="1.5">
<compile files="SyntaxError.aj" options="-1.5">
<message kind="error" line="3" text="Syntax error on token "new", "method name (not constructor)" expected"/>
</compile>
</ajc-test>
<!-- hasmethod / hasfield tests -->
<ajc-test title="declare parents : hasmethod(..) - 1" dir="hasmember">
<compile files="HasMethod.aj">
<message kind="error" line="5" text="the type pattern hasmethod(* print(..)) can only be used when the -XhasMember option is set"/>
</compile>
</ajc-test>
<ajc-test title="declare parents : hasmethod(..) - 1" dir="hasmember">
<compile files="HasMethod.aj" options="-XhasMember">
</compile>
<run class="HasMethod"></run>
</ajc-test>
<ajc-test title="declare parents : hasmethod(..) - 2" dir="hasmember">
<compile files="HasMethodInherited.aj" options="-XhasMember">
</compile>
<run class="HasMethodInherited"></run>
</ajc-test>
<ajc-test title="declare parents : hasmethod(..) - 3" dir="hasmember">
<compile files="HasPrivateMethodInherited.aj" options="-XhasMember">
</compile>
<run class="HasPrivateMethodInherited"></run>
</ajc-test>
<ajc-test title="declare parents : hasmethod(..) - 4" dir="hasmember">
<compile files="HasMethodViaITD.aj" options="-XhasMember">
<message kind="warning" line="15" text="hasmethod matched on ITD ok"/>
</compile>
</ajc-test>
<ajc-test title="declare parents : hasfield(..) - 1" dir="hasmember">
<compile files="HasField.aj" options="-XhasMember">
</compile>
<run class="HasField"></run>
</ajc-test>
<ajc-test title="declare parents : hasfield(..) - 2" dir="hasmember">
<compile files="HasFieldInherited.aj" options="-XhasMember">
</compile>
<run class="HasFieldInherited"></run>
</ajc-test>
<ajc-test title="declare parents : hasfield(..) - 3" dir="hasmember">
<compile files="HasPrivateFieldInherited.aj" options="-XhasMember">
</compile>
<run class="HasPrivateFieldInherited"></run>
</ajc-test>
<!-- Annotation binding tests -->
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 1">
<compile files="CallAnnBinding.aj" options="-1.5"/>
<run class="CallAnnBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 2">
<compile files="CallAnnBinding2.aj" options="-1.5"/>
<run class="CallAnnBinding2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 3">
<compile files="CallAnnBinding3.aj" options="-1.5"/>
<run class="CallAnnBinding3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 4">
<compile files="CallAnnBinding4.aj" options="-1.5"/>
<run class="CallAnnBinding4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 5">
<compile files="CallAnnBinding5.aj" options="-1.5"/>
<run class="CallAnnBinding5"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 6">
<compile files="CallAnnBinding6.aj" options="-1.5"/>
<run class="CallAnnBinding6"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="call annotation binding 7">
<compile files="CallAnnBinding7.aj" options="-1.5"/>
<run class="CallAnnBinding7"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 1">
<compile files="AtTarget1.aj" options="-1.5"/>
<run class="AtTarget1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 2">
<compile files="AtTarget2.aj" options="-1.5"/>
<run class="AtTarget2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 3">
<compile files="AtTarget3.aj" options="-1.5"/>
<run class="AtTarget3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@target annotation binding 4">
<compile files="AtTarget4.aj" options="-1.5"/>
<run class="AtTarget4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding/usingPackageNames" vm="1.5" title="@target annotation binding 5">
<compile files="MyAspect.aj,MyAnnotation.java,MyClass.java" options="-1.5"/>
<run class="test.MyClass"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 1">
<compile files="AtThis1.aj" options="-1.5"/>
<run class="AtThis1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 2">
<compile files="AtThis2.aj" options="-1.5"/>
<run class="AtThis2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 3">
<compile files="AtThis3.aj" options="-1.5"/>
<run class="AtThis3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 4">
<compile files="AtThis4.aj" options="-1.5"/>
<run class="AtThis4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@this annotation binding 5">
<compile files="AtThis5.aj" options="-1.5"/>
<run class="AtThis5"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 1">
<compile files="AtArgs1.aj" options="-1.5"/>
<run class="AtArgs1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 2">
<compile files="AtArgs2.aj" options="-1.5"/>
<run class="AtArgs2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 3">
<compile files="AtArgs3.aj" options="-1.5"/>
<run class="AtArgs3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 4">
<compile files="AtArgs4.aj" options="-1.5"/>
<run class="AtArgs4"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@args annotation binding 5">
<compile files="AtArgs5.aj" options="-1.5"/>
<run class="AtArgs5"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="execution and @annotation">
<compile files="ExecutionAnnBinding1.aj" options="-1.5"/>
<run class="ExecutionAnnBinding1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="set and @annotation">
<compile files="FieldAnnBinding1.aj" options="-1.5"/>
<run class="FieldAnnBinding1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="get and @annotation">
<compile files="FieldAnnBinding2.aj" options="-1.5"/>
<run class="FieldAnnBinding2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="get and @annotation with arrays">
<compile files="FieldAnnBinding3.aj" options="-1.5"/>
<run class="FieldAnnBinding3"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="cons call and @annotation">
<compile files="CtorAnnBinding1.aj" options="-1.5"/>
<run class="CtorAnnBinding1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="cons exe and @annotation">
<compile files="CtorAnnBinding2.aj" options="-1.5"/>
<run class="CtorAnnBinding2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="staticinit and @annotation">
<compile files="StaticInitBinding.aj" options="-1.5"/>
<run class="StaticInitBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="preinit and @annotation">
<compile files="PreInitBinding.aj" options="-1.5"/>
<run class="PreInitBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="init and @annotation">
<compile files="InitBinding.aj" options="-1.5"/>
<run class="InitBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="adviceexecution and @annotation">
<compile files="AdviceExecBinding.aj" options="-1.5"/>
<run class="AdviceExecBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="handler and @annotation">
<compile files="HandlerBinding.aj" options="-1.5"/>
<run class="HandlerBinding"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@withincode() and call(* println(..))">
<compile files="WithinCodeBinding1.aj" options="-1.5"/>
<run class="WithinCodeBinding1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@within">
<compile files="WithinBinding1.aj" options="-1.5"/>
<run class="WithinBinding1"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="@within - multiple types">
<compile files="WithinBinding2.aj" options="-1.5"/>
<run class="WithinBinding2"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="packages and no binding">
<compile files="A.java,B.java,Color.java,X.java" options="-1.5"/>
<run class="a.b.c.A"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="packages and binding">
<compile files="A.java,B.java,Color.java,X2.java" options="-1.5"/>
<run class="a.b.c.A"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding" vm="1.5" title="binding with static methods">
<compile files="StaticMethods.java" options="-1.5"/>
<run class="StaticMethods"/>
</ajc-test>
<ajc-test dir="java5/annotations" vm="1.5" title="annotation matching on call">
<weave classesFiles="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java"
aspectsFiles="AnnotationAspect02.aj"
options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'AnnotatedType' (AnnotatedType.java:3) advised by before advice from 'AnnotationAspect02' (AnnotationAspect02.aj:4)"/>
<message kind="weave" text="Type 'AnnotatedType' (AnnotatedType.java:3) advised by before advice from 'AnnotationAspect02' (AnnotationAspect02.aj:2)"/>
<message kind="weave" text="Type 'AnnotatedType' (AnnotatedType.java:4) advised by before advice from 'AnnotationAspect02' (AnnotationAspect02.aj:4)"/>
</weave>
</ajc-test>
<ajc-test dir="java5/annotations" vm="1.5" title="at annotation matching">
<weave classesFiles="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java"
aspectsFiles="AnnotationAspect03.aj"
options="-1.5,-showWeaveInfo">
<message kind="warning" line="8" text="@annotation matched here"/>
</weave>
</ajc-test>
<ajc-test dir="java5/annotations/within_code" vm="1.5" title="annotations and within(code)">
<weave classesFiles="TestingAnnotations.java"
aspectsFiles="WithinAndWithinCodeTests.java"
options="-1.5,-showWeaveInfo">
<message kind="warning" line="31" text="@within match on non-inherited annotation"/>
<message kind="warning" line="39" text="@within match on non-inherited annotation"/>
<message kind="warning" line="39" text="@within match on inheritable annotation"/>
<message kind="warning" line="43" text="@within match on inheritable annotation"/>
<message kind="warning" line="32" text="@withincode match"/>
</weave>
</ajc-test>
<ajc-test dir="java5/annotations/within" vm="1.5" title="annotations and within">
<weave classesFiles="PlainWithin.java"
aspectsFiles="PlainWithinTests.java"
options="-1.5,-showWeaveInfo">
<message kind="warning" line="21" text="positive within match on annotation"/>
<message kind="warning" line="25" text="negative within match on annotation"/>
</weave>
</ajc-test>
<ajc-test dir="java5/annotations/thisOrtarget" vm="1.5" title="must have runtime retention">
<compile options="-1.5" files="NotRuntimeRetention.aj">
<message kind="error" line="20" text="Annotation type MySourceAnnotation does not have runtime retention"/>
<message kind="error" line="21" text="Annotation type MyClassAnnotation does not have runtime retention"/>
<message kind="error" line="22" text="Annotation type MyAnnotation does not have runtime retention"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/thisOrtarget" vm="1.5" title="inheritable or not">
<compile options="-1.5" files="TestingAnnotations.java,ThisOrTargetTests.aj">
</compile>
<run class="TestingAnnotations"/>
</ajc-test>
<ajc-test dir="java5/annotations/thisOrtarget" vm="1.5" title="use of @this/target in deow">
<compile options="-1.5" files="TestingAnnotations.java,DeclareEoW.java">
<message kind="error" line="3" text="this() pointcut designator cannot be used in declare statement"/>
<message kind="error" line="5" text="target() pointcut designator cannot be used in declare statement"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/args" vm="1.5" title="@args tests">
<compile options="-1.5" files="TestingArgsAnnotations.java,AtArgsAspect.java">
</compile>
<run class="TestingArgsAnnotations"/>
</ajc-test>
<ajc-test dir="java5/annotations/args" vm="1.5" title="use of @args in deow">
<compile options="-1.5" files="TestingArgsAnnotations.java,DeclareEoW.java">
<message kind="error" line="3" text="args() pointcut designator cannot be used in declare statement"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations" vm="1.5" title="compiling an annotation">
<compile options="-1.5" files="SimpleAnnotation.java">
</compile>
</ajc-test>
<ajc-test dir="java5/annotations" vm="1.5" title="compiling annotated file">
<compile options="-1.5" files="SimpleAnnotation.java,AnnotatedType.java">
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/within" vm="1.5" title="annotations and within (src)">
<compile files="PlainWithin.java,PlainWithinTests.java"
aspectsFiles="PlainWithinTests.java"
options="-1.5">
<message kind="warning" line="21" text="positive within match on annotation"/>
<message kind="warning" line="25" text="negative within match on annotation"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/attarget" vm="1.5" title="losing annotations...">
<compile options="-1.5" files="Program.java,AtTargetAspect.java">
</compile>
</ajc-test>
<ajc-test dir="java5/annotations" vm="1.5" title="no itds on annotation types">
<compile files="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java,AnnotationAspect01.aj"
options="-1.5">
<message kind="error" line="4" text="can't make inter-type constructor declarations"/>
<message kind="error" line="8" text="can't make inter-type method declarations"/>
<message kind="error" line="13" text="can't make inter-type field declarations"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations" vm="1.5" title="no declare parents on annotation types">
<compile files="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java,AnnotationAspect04.aj"
options="-1.5">
<message kind="error" line="7" text="can't use declare parents to alter supertype of annotation type SimpleAnnotation"/>
<message kind="error" line="10" text="can't use declare parents to make 'java.lang.annotation.Annotation' the parent of type"/>
<message kind="error" line="4" text="can't use declare parents to make annotation type SimpleAnnotation implement an interface"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations" vm="1.5" title="declare parents wildcards matching annotation types">
<compile files="AnnotatedType.java,SimpleAnnotation.java,SimpleAnnotation2.java,AnnotationAspect05.aj"
options="-1.5">
<message kind="warning" line="4" text="annotation type SimpleAnnotation2 matches a declare parents type pattern but is being ignored"/>
<message kind="warning" line="4" text="annotation type SimpleAnnotation matches a declare parents type pattern but is being ignored"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="annotated any pattern">
<compile files="A.java,B.java,C.java,Color.java,X3.java"
options="-1.5">
</compile>
<run class="g.h.i.C"/>
<run class="a.b.c.A"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding/complexExample" vm="1.5" title="annotation not imported">
<compile files="A.java,B.java,C.java,Color.java,X4.java"
options="-1.5">
<message kind="warning" line="6" text="no match for this type name: Color"/>
</compile>
<run class="a.b.c.A"/>
</ajc-test>
<ajc-test dir="java5/annotations/itds" vm="1.5" title="annotated public itds">
<compile files="AtItd2.aj" options="-1.5"/>
<run class="AtItd2"/>
</ajc-test>
<ajc-test dir="java5/annotations/itds" vm="1.5" title="annotated public itds - values">
<compile files="AtItd3.aj" options="-1.5"/>
<run class="AtItd3"/>
</ajc-test>
<ajc-test dir="java5/annotations/itds" vm="1.5" title="annotated public itds - multiple complex annotations">
<compile files="AtItd4.aj" options="-1.5"/>
<run class="AtItd4"/>
</ajc-test>
<ajc-test dir="java5/annotations/itds" vm="1.5" title="nasty annotation and itds test">
<compile files="AnnotationsAndITDs.aj" options="-1.5">
<!-- first two are ITCs, second two are ITCs annotated via declare @ctor, third is default ctor -->
<message kind="warning" line="17" text="execution(@SomeAnnotation ...new(..)"/>
<message kind="warning" line="20" text="execution(@SomeAnnotation ...new(..)"/>
<message kind="warning" line="45" text="execution(@SomeAnnotation ...new(..)"/>
<message kind="warning" line="46" text="execution(@SomeAnnotation ...new(..)"/>
<message kind="warning" line="180" text="execution(@SomeAnnotation ...new(..)"/>
<!-- first four are fields annotated via declare, last two are directly annotated ITDs -->
<message kind="warning" line="59" text="set(@SomeAnnotation...)"/>
<message kind="warning" line="60" text="set(@SomeAnnotation...)"/>
<message kind="warning" line="70" text="set(@SomeAnnotation...)"/>
<message kind="warning" line="71" text="set(@SomeAnnotation...)"/>
<message kind="warning" line="76" text="set(@SomeAnnotation...)"/>
<message kind="warning" line="77" text="set(@SomeAnnotation...)"/>
<!-- annotations added via declare -->
<message kind="warning" line="175" text="si(@SomeAnnotation...)"/>
<message kind="warning" line="180" text="si(@SomeAnnotation...)"/>
<message kind="warning" line="25" text="execution(@SomeAnnotation ...)"/>
<message kind="warning" line="28" text="execution(@SomeAnnotation ...)"/>
<message kind="warning" line="52" text="execution(@SomeAnnotation ...)"/>
<message kind="warning" line="53" text="execution(@SomeAnnotation ...)"/>
<!--message kind="warning" line="70" text="set(@SomeAnnotation...)"/>
<message kind="warning" line="71" text="set(@SomeAnnotation...)"/-->
</compile>
<run class="AnnotationsAndITDs">
<stderr>
<line text="@type java.lang.System (AnnotationsAndITDs.aj:0)"/>
<line text="hello AnnotationsAndITDs (AnnotationsAndITDs.aj:17)"/>
<line text="goodbye java.lang.String (AnnotationsAndITDs.aj:20)"/>
<line text="goodbye java.lang.String (AnnotationsAndITDs.aj:20)"/>
<line text="y java.lang.Integer (AnnotationsAndITDs.aj:28)"/>
<line text="d java.lang.Double (AnnotationsAndITDs.aj:70)"/>
<line text="f java.lang.Double (AnnotationsAndITDs.aj:71)"/>
<line text="@type java.lang.System (AnnotationsAndITDs.aj:0)"/>
<line text="@field ITDMe2 (AnnotationsAndITDs.aj:59)"/>
<line text="@field ITDMe2 (AnnotationsAndITDs.aj:60)"/>
<line text="@cons java.lang.String (AnnotationsAndITDs.aj:45)"/>
<line text="@field ITDMe2 (AnnotationsAndITDs.aj:59)"/>
<line text="@field ITDMe2 (AnnotationsAndITDs.aj:60)"/>
<line text="@cons java.lang.String (AnnotationsAndITDs.aj:46)"/>
<line text="@cons java.lang.String (AnnotationsAndITDs.aj:46)"/>
<line text="@method ITDMe2 (AnnotationsAndITDs.aj:53)"/>
<line text="@field ITDMe2 (AnnotationsAndITDs.aj:76)"/>
<line text="@field ITDMe2 (AnnotationsAndITDs.aj:77)"/>
<!--
<line text="method bar has 1 params, first param annotation is @ParamAnnotation"/>
-->
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" pr="91858" title="declare @Type (should be @type)">
<compile files="DeathByPoorSpelling.aj" options="-1.5">
<message kind="error" line="6" text="Syntax error on token ":", "one of type, method, field, constructor" expected"/>
</compile>
</ajc-test>
<!-- ======================================================================================= -->
<!-- Autoboxing tests -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/autoboxing" vm="1.5" title="simple boxing test">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,SimpleAutoboxingAspect.aj"
options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'SimpleAutoboxing' (SimpleAutoboxing.java:7) advised by before advice from 'SimpleAutoboxingAspect' (SimpleAutoboxingAspect.aj:8)"/>
<message kind="weave" text="Type 'SimpleAutoboxing' (SimpleAutoboxing.java:7) advised by before advice from 'SimpleAutoboxingAspect' (SimpleAutoboxingAspect.aj:4)"/>
</compile>
<run class="SimpleAutoboxing">
<stderr>
<line text="Matching by Integer:20000"/>
<line text="Matching by int:20000"/>
<line text="method_takes_Integer=20000"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="integer boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectInteger.aj"
options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'AutoboxingI' (AutoboxingI.java:11) advised by before advice from 'AspectInteger' (AspectInteger.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingI' (AutoboxingI.java:11) advised by before advice from 'AspectInteger' (AspectInteger.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingI' (AutoboxingI.java:12) advised by before advice from 'AspectInteger' (AspectInteger.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingI' (AutoboxingI.java:12) advised by before advice from 'AspectInteger' (AspectInteger.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingI' (AutoboxingI.java:13) advised by before advice from 'AspectInteger' (AspectInteger.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingI' (AutoboxingI.java:13) advised by before advice from 'AspectInteger' (AspectInteger.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingI' (AutoboxingI.java:14) advised by before advice from 'AspectInteger' (AspectInteger.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingI' (AutoboxingI.java:14) advised by before advice from 'AspectInteger' (AspectInteger.aj:4)"/>
</compile>
<run class="AutoboxingI">
<stderr>
<line text="Matching by Integer:10000"/>
<line text="Matching by int:10000"/>
<line text="method_takes_Integer=10000"/>
<line text="Matching by Integer:20000"/>
<line text="Matching by int:20000"/>
<line text="method_takes_Integer=20000"/>
<line text="Matching by Integer:30000"/>
<line text="Matching by int:30000"/>
<line text="method_takes_int=30000"/>
<line text="Matching by Integer:40000"/>
<line text="Matching by int:40000"/>
<line text="method_takes_int=40000"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="char boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectChar.aj"
options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'AutoboxingC' (AutoboxingC.java:11) advised by before advice from 'AspectChar' (AspectChar.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingC' (AutoboxingC.java:11) advised by before advice from 'AspectChar' (AspectChar.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingC' (AutoboxingC.java:12) advised by before advice from 'AspectChar' (AspectChar.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingC' (AutoboxingC.java:12) advised by before advice from 'AspectChar' (AspectChar.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingC' (AutoboxingC.java:13) advised by before advice from 'AspectChar' (AspectChar.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingC' (AutoboxingC.java:13) advised by before advice from 'AspectChar' (AspectChar.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingC' (AutoboxingC.java:14) advised by before advice from 'AspectChar' (AspectChar.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingC' (AutoboxingC.java:14) advised by before advice from 'AspectChar' (AspectChar.aj:4)"/>
</compile>
<run class="AutoboxingC">
<stderr>
<line text="Character:1"/>
<line text="char:1"/>
<line text="method_takes_Character=1"/>
<line text="Character:2"/>
<line text="char:2"/>
<line text="method_takes_Character=2"/>
<line text="Character:3"/>
<line text="char:3"/>
<line text="method_takes_char=3"/>
<line text="Character:4"/>
<line text="char:4"/>
<line text="method_takes_char=4"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="double boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectDouble.aj"
options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'AutoboxingD' (AutoboxingD.java:11) advised by before advice from 'AspectDouble' (AspectDouble.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingD' (AutoboxingD.java:11) advised by before advice from 'AspectDouble' (AspectDouble.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingD' (AutoboxingD.java:12) advised by before advice from 'AspectDouble' (AspectDouble.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingD' (AutoboxingD.java:12) advised by before advice from 'AspectDouble' (AspectDouble.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingD' (AutoboxingD.java:13) advised by before advice from 'AspectDouble' (AspectDouble.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingD' (AutoboxingD.java:13) advised by before advice from 'AspectDouble' (AspectDouble.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingD' (AutoboxingD.java:14) advised by before advice from 'AspectDouble' (AspectDouble.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingD' (AutoboxingD.java:14) advised by before advice from 'AspectDouble' (AspectDouble.aj:4)"/>
</compile>
<run class="AutoboxingD">
<stderr>
<line text="Double:100.0"/>
<line text="double:100.0"/>
<line text="method_takes_Double=100.0"/>
<line text="Double:200.0"/>
<line text="double:200.0"/>
<line text="method_takes_Double=200.0"/>
<line text="Double:300.0"/>
<line text="double:300.0"/>
<line text="method_takes_double=300.0"/>
<line text="Double:400.0"/>
<line text="double:400.0"/>
<line text="method_takes_double=400.0"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="float boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectFloat.aj"
options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'AutoboxingF' (AutoboxingF.java:11) advised by before advice from 'AspectFloat' (AspectFloat.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingF' (AutoboxingF.java:11) advised by before advice from 'AspectFloat' (AspectFloat.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingF' (AutoboxingF.java:12) advised by before advice from 'AspectFloat' (AspectFloat.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingF' (AutoboxingF.java:12) advised by before advice from 'AspectFloat' (AspectFloat.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingF' (AutoboxingF.java:13) advised by before advice from 'AspectFloat' (AspectFloat.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingF' (AutoboxingF.java:13) advised by before advice from 'AspectFloat' (AspectFloat.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingF' (AutoboxingF.java:14) advised by before advice from 'AspectFloat' (AspectFloat.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingF' (AutoboxingF.java:14) advised by before advice from 'AspectFloat' (AspectFloat.aj:4)"/>
</compile>
<run class="AutoboxingF">
<stderr>
<line text="Float:100.0"/>
<line text="float:100.0"/>
<line text="method_takes_Float=100.0"/>
<line text="Float:200.0"/>
<line text="float:200.0"/>
<line text="method_takes_Float=200.0"/>
<line text="Float:300.0"/>
<line text="float:300.0"/>
<line text="method_takes_float=300.0"/>
<line text="Float:400.0"/>
<line text="float:400.0"/>
<line text="method_takes_float=400.0"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="short boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectShort.aj"
options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'AutoboxingS' (AutoboxingS.java:11) advised by before advice from 'AspectShort' (AspectShort.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingS' (AutoboxingS.java:11) advised by before advice from 'AspectShort' (AspectShort.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingS' (AutoboxingS.java:12) advised by before advice from 'AspectShort' (AspectShort.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingS' (AutoboxingS.java:12) advised by before advice from 'AspectShort' (AspectShort.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingS' (AutoboxingS.java:13) advised by before advice from 'AspectShort' (AspectShort.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingS' (AutoboxingS.java:13) advised by before advice from 'AspectShort' (AspectShort.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingS' (AutoboxingS.java:14) advised by before advice from 'AspectShort' (AspectShort.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingS' (AutoboxingS.java:14) advised by before advice from 'AspectShort' (AspectShort.aj:4)"/>
</compile>
<run class="AutoboxingS">
<stderr>
<line text="Short:100"/>
<line text="short:100"/>
<line text="method_takes_Short=100"/>
<line text="Short:200"/>
<line text="short:200"/>
<line text="method_takes_Short=200"/>
<line text="Short:300"/>
<line text="short:300"/>
<line text="method_takes_short=300"/>
<line text="Short:400"/>
<line text="short:400"/>
<line text="method_takes_short=400"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="long boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectLong.aj"
options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'AutoboxingJ' (AutoboxingJ.java:11) advised by before advice from 'AspectLong' (AspectLong.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingJ' (AutoboxingJ.java:11) advised by before advice from 'AspectLong' (AspectLong.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingJ' (AutoboxingJ.java:12) advised by before advice from 'AspectLong' (AspectLong.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingJ' (AutoboxingJ.java:12) advised by before advice from 'AspectLong' (AspectLong.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingJ' (AutoboxingJ.java:13) advised by before advice from 'AspectLong' (AspectLong.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingJ' (AutoboxingJ.java:13) advised by before advice from 'AspectLong' (AspectLong.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingJ' (AutoboxingJ.java:14) advised by before advice from 'AspectLong' (AspectLong.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingJ' (AutoboxingJ.java:14) advised by before advice from 'AspectLong' (AspectLong.aj:4)"/>
</compile>
<run class="AutoboxingJ">
<stderr>
<line text="Long:1000000"/>
<line text="long:1000000"/>
<line text="method_takes_Long=1000000"/>
<line text="Long:2000000"/>
<line text="long:2000000"/>
<line text="method_takes_Long=2000000"/>
<line text="Long:3000000"/>
<line text="long:3000000"/>
<line text="method_takes_long=3000000"/>
<line text="Long:4000000"/>
<line text="long:4000000"/>
<line text="method_takes_long=4000000"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="boolean boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectBoolean.aj"
options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'AutoboxingZ' (AutoboxingZ.java:9) advised by before advice from 'AspectBoolean' (AspectBoolean.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingZ' (AutoboxingZ.java:9) advised by before advice from 'AspectBoolean' (AspectBoolean.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingZ' (AutoboxingZ.java:10) advised by before advice from 'AspectBoolean' (AspectBoolean.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingZ' (AutoboxingZ.java:10) advised by before advice from 'AspectBoolean' (AspectBoolean.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingZ' (AutoboxingZ.java:11) advised by before advice from 'AspectBoolean' (AspectBoolean.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingZ' (AutoboxingZ.java:11) advised by before advice from 'AspectBoolean' (AspectBoolean.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingZ' (AutoboxingZ.java:12) advised by before advice from 'AspectBoolean' (AspectBoolean.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingZ' (AutoboxingZ.java:12) advised by before advice from 'AspectBoolean' (AspectBoolean.aj:4)"/>
</compile>
<run class="AutoboxingZ">
<stderr>
<line text="Boolean:false"/>
<line text="boolean:false"/>
<line text="method_takes_Boolean=false"/>
<line text="Boolean:false"/>
<line text="boolean:false"/>
<line text="method_takes_Boolean=false"/>
<line text="Boolean:false"/>
<line text="boolean:false"/>
<line text="method_takes_boolean=false"/>
<line text="Boolean:false"/>
<line text="boolean:false"/>
<line text="method_takes_boolean=false"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="byte boxing">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectByte.aj"
options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'AutoboxingB' (AutoboxingB.java:11) advised by before advice from 'AspectByte' (AspectByte.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingB' (AutoboxingB.java:11) advised by before advice from 'AspectByte' (AspectByte.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingB' (AutoboxingB.java:12) advised by before advice from 'AspectByte' (AspectByte.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingB' (AutoboxingB.java:12) advised by before advice from 'AspectByte' (AspectByte.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingB' (AutoboxingB.java:13) advised by before advice from 'AspectByte' (AspectByte.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingB' (AutoboxingB.java:13) advised by before advice from 'AspectByte' (AspectByte.aj:4)"/>
<message kind="weave" text="Type 'AutoboxingB' (AutoboxingB.java:14) advised by before advice from 'AspectByte' (AspectByte.aj:8)"/>
<message kind="weave" text="Type 'AutoboxingB' (AutoboxingB.java:14) advised by before advice from 'AspectByte' (AspectByte.aj:4)"/>
</compile>
<run class="AutoboxingB">
<stderr>
<line text="Byte:1"/>
<line text="byte:1"/>
<line text="method_takes_Byte=1"/>
<line text="Byte:50"/>
<line text="byte:50"/>
<line text="method_takes_Byte=50"/>
<line text="Byte:3"/>
<line text="byte:3"/>
<line text="method_takes_byte=3"/>
<line text="Byte:52"/>
<line text="byte:52"/>
<line text="method_takes_byte=52"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/autoboxing" vm="1.5" title="boxing in after returning">
<compile files="AutoboxingB.java,AutoboxingC.java,AutoboxingD.java,AutoboxingF.java,AutoboxingI.java,AutoboxingJ.java,AutoboxingS.java,AutoboxingZ.java,SimpleAutoboxing.java,AspectAfterReturning.aj"
options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'AspectAfterReturning' (AspectAfterReturning.aj:18) advised by afterReturning advice from 'AspectAfterReturning' (AspectAfterReturning.aj:4)"/>
<message kind="weave" text="Type 'AspectAfterReturning' (AspectAfterReturning.aj:18) advised by afterReturning advice from 'AspectAfterReturning' (AspectAfterReturning.aj:8)"/>
<message kind="weave" text="Type 'AspectAfterReturning' (AspectAfterReturning.aj:18) advised by afterReturning advice from 'AspectAfterReturning' (AspectAfterReturning.aj:12)"/>
<message kind="weave" text="Type 'AspectAfterReturning' (AspectAfterReturning.aj:19) advised by afterReturning advice from 'AspectAfterReturning' (AspectAfterReturning.aj:4)"/>
<message kind="weave" text="Type 'AspectAfterReturning' (AspectAfterReturning.aj:19) advised by afterReturning advice from 'AspectAfterReturning' (AspectAfterReturning.aj:8)"/>
<message kind="weave" text="Type 'AspectAfterReturning' (AspectAfterReturning.aj:19) advised by afterReturning advice from 'AspectAfterReturning' (AspectAfterReturning.aj:12)"/>
</compile>
<run class="AspectAfterReturning">
<stderr>
<line text="Returning I=5"/>
<line text="Returning Integer=5"/>
<line text="Returning Object=5"/>
<line text="Returning I=10"/>
<line text="Returning Integer=10"/>
<line text="Returning Object=10"/>
</stderr>
</run>
</ajc-test>
<!-- ======================================================================================= -->
<!-- Covariance tests -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/covariance" vm="1.5" title="covariance 1">
<compile options="-1.5,-showWeaveInfo" files="CovBaseProgram01.java,CovAspect01.aj">
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:26) advised by before advice from 'CovAspect01' (CovAspect01.aj:5)"/>
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:27) advised by before advice from 'CovAspect01' (CovAspect01.aj:5)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/covariance" vm="1.5" title="covariance 2">
<compile options="-1.5,-showWeaveInfo" files="CovBaseProgram01.java,CovAspect02.aj">
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:26) advised by before advice from 'CovAspect02' (CovAspect02.aj:5)"/>
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:27) advised by before advice from 'CovAspect02' (CovAspect02.aj:5)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/covariance" vm="1.5" title="covariance 3">
<compile options="-1.5,-showWeaveInfo" files="CovBaseProgram01.java,CovAspect03.aj">
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:26) advised by before advice from 'CovAspect03' (CovAspect03.aj:5)"/>
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:27) advised by before advice from 'CovAspect03' (CovAspect03.aj:5)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/covariance" vm="1.5" title="covariance 4">
<compile options="-1.5,-showWeaveInfo" files="CovBaseProgram02.java,CovAspect04.aj">
<message kind="weave" text="Type 'CovBaseProgram02' (CovBaseProgram02.java:30) advised by before advice from 'CovAspect04' (CovAspect04.aj:5)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/covariance" vm="1.5" title="covariance 5">
<compile options="-1.5,-showWeaveInfo" files="CovBaseProgram01.java,CovAspect05.aj">
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:26) advised by before advice from 'CovAspect05' (CovAspect05.aj:5)"/>
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:27) advised by before advice from 'CovAspect05' (CovAspect05.aj:5)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/covariance" vm="1.5" title="covariance 6">
<compile options="-1.5,-showWeaveInfo" files="CovBaseProgram01.java,CovAspect06.aj">
<message kind="warning" line="3" text="does not match because declaring type is Super"/>
</compile>
</ajc-test>
<ajc-test dir="java5/covariance" vm="1.5" title="covariance 7">
<compile options="-1.5,-showWeaveInfo" files="CovBaseProgram01.java,CovAspect07.aj">
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:27) advised by before advice from 'CovAspect07' (CovAspect07.aj:5)"/>
<message kind="warning" line="3" text="does not match because declaring type is Super"/>
</compile>
</ajc-test>
<ajc-test dir="java5/covariance" vm="1.5" title="covariance 8">
<compile options="-1.5,-showWeaveInfo" files="CovBaseProgram01.java,CovAspect08.aj">
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:27) advised by before advice from 'CovAspect08' (CovAspect08.aj:11)"/>
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:27) advised by before advice from 'CovAspect08' (CovAspect08.aj:5)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/covariance" vm="1.5" title="covariance 9">
<compile options="-1.5,-showWeaveInfo" files="CovBaseProgram01.java,CovAspect09.aj">
</compile>
</ajc-test>
<ajc-test dir="java5/covariance" vm="1.5" title="covariance 10">
<compile options="-1.5,-showWeaveInfo" files="CovBaseProgram01.java,CovAspect10.aj">
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:26) advised by before advice from 'CovAspect10' (CovAspect10.aj:5)"/>
<message kind="weave" text="Type 'CovBaseProgram01' (CovBaseProgram01.java:27) advised by before advice from 'CovAspect10' (CovAspect10.aj:5)"/>
</compile>
</ajc-test>
<!-- ======================================================================================= -->
<!-- Enum tests -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/enums" vm="1.5" title="cant itd constructor on enum">
<compile files="SimpleEnum.java,SimpleEnum2.java,EnumAspect01.aj" options="-1.5">
<message kind="error" line="2" text="can't make inter-type constructor declarations on enum types"/>
</compile>
</ajc-test>
<ajc-test dir="java5/enums" vm="1.5" title="cant itd field or method on enum">
<compile files="SimpleEnum.java,SimpleEnum2.java,EnumAspect02.aj" options="-1.5">
<message kind="error" line="2" text="can't make inter-type method declarations on enum types"/>
<message kind="error" line="6" text="can't make inter-type field declarations on enum types"/>
</compile>
</ajc-test>
<ajc-test dir="java5/enums" vm="1.5" title="declare parents and enums">
<compile files="SimpleEnum.java,SimpleEnum2.java,EnumAspect03.aj" options="-1.5">
<message kind="error" line="5" text="can't use declare parents to make enum type SimpleEnum implement an interface"/>
<message kind="error" line="8" text="can't use declare parents to alter supertype of enum type SimpleEnum"/>
<message kind="error" line="11" text="can't use declare parents to make 'java.lang.Enum' the parent of type EnumAspect03$D"/>
</compile>
</ajc-test>
<ajc-test dir="java5/enums" vm="1.5" title="wildcard enum match in itd">
<compile files="SimpleEnum.java,SimpleEnum2.java,EnumAspect04.aj" options="-1.5">
<message kind="warning" line="5" text="enum type SimpleEnum2 matches a declare parents type pattern but is being ignored"/>
<message kind="warning" line="5" text="enum type SimpleEnum matches a declare parents type pattern but is being ignored"/>
</compile>
</ajc-test>
<!-- ======================================================================================= -->
<!-- pertypewithin tests -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/pertypewithin" title="basic ptw test">
<compile files="A.java,B.java,C.java,D.java,Main.java,X.java"/>
<run class="p.A">
<stderr>
<line text="hi from A"/>
<line text="after() returning from a method call to sayhi()"/>
<line text="hi from A"/>
<line text="after() returning from a method call to sayhi()"/>
<line text="Tests in A have passed"/>
<line text="callcount = 2"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/pertypewithin" title="ptw hasAspect">
<compile files="A.java,B.java,C.java,D.java,Main.java,X.java"/>
<run class="p.B">
<stderr>
<line text="hi from B"/>
<line text="after() returning from a method call to sayhi()"/>
<line text="hi from B"/>
<line text="after() returning from a method call to sayhi()"/>
<line text="hi from B"/>
<line text="after() returning from a method call to sayhi()"/>
<line text="callcount = 3"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/pertypewithin" title="ptw aspectOf">
<compile files="A.java,B.java,C.java,D.java,Main.java,X.java"/>
<run class="p.C"/>
</ajc-test>
<ajc-test dir="java5/pertypewithin" title="ptw multi-aspects">
<compile files="P.java,Q.java,R.java"/>
<run class="P">
<stderr>
<line text="Q reporting 2"/>
<line text="R reporting 3"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/pertypewithin" title="ptw binary">
<weave classesFiles="G.java" aspectsFiles="H.java"/>
<run class="G">
<stderr>
<line text="advice running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/pertypewithin" title="ptw binary aspect">
<compile files="H.java" outjar="aspects.jar">
<message kind="warning" line="1" text="no match for this type name: G"/>
</compile>
<compile files="G.java" aspectpath="aspects.jar"/>
<run class="G">
<stderr>
<line text="advice running"/>
</stderr>
</run>
</ajc-test>
<!-- ======================================================================================= -->
<!-- varargs tests -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/varargs" vm="1.5" title="varargs not matched by Object[] (call)">
<compile files="SimpleVarargs.java,VarargsAspect01.aj" options="-1.5,-showWeaveInfo">
</compile>
</ajc-test>
<ajc-test dir="java5/varargs" vm="1.5" title="varargs not matched by Object[] (exe)">
<compile files="SimpleVarargs.java,VarargsAspect02.aj" options="-1.5,-showWeaveInfo">
</compile>
</ajc-test>
<ajc-test dir="java5/varargs" vm="1.5" title="varargs not matched by Object[] (init)">
<compile files="SimpleVarargs.java,VarargsAspect03.aj" options="-1.5,-showWeaveInfo">
</compile>
</ajc-test>
<ajc-test dir="java5/varargs" vm="1.5" title="varargs not matched by Object[] (withincode)">
<compile files="SimpleVarargs.java,VarargsAspect04.aj" options="-1.5,-showWeaveInfo">
</compile>
</ajc-test>
<ajc-test dir="java5/varargs" vm="1.5" title="call with varargs signature">
<compile files="SimpleVarargs.java,VarargsAspect05.aj" options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'SimpleVarargs' (SimpleVarargs.java:20) advised by before advice from 'VarargsAspect05' (VarargsAspect05.aj:3)"/>
<message kind="weave" text="Type 'SimpleVarargs' (SimpleVarargs.java:21) advised by before advice from 'VarargsAspect05' (VarargsAspect05.aj:3)"/>
<message kind="weave" text="Type 'SimpleVarargs' (SimpleVarargs.java:22) advised by before advice from 'VarargsAspect05' (VarargsAspect05.aj:3)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/varargs" vm="1.5" title="call with varargs multi-signature">
<compile files="SimpleVarargs.java,VarargsAspect06.aj" options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'SimpleVarargs' (SimpleVarargs.java:25) advised by before advice from 'VarargsAspect06' (VarargsAspect06.aj:3)"/>
<message kind="weave" text="Type 'SimpleVarargs' (SimpleVarargs.java:26) advised by before advice from 'VarargsAspect06' (VarargsAspect06.aj:3)"/>
<message kind="weave" text="Type 'SimpleVarargs' (SimpleVarargs.java:27) advised by before advice from 'VarargsAspect06' (VarargsAspect06.aj:3)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/suppressedWarnings" vm="1.5" title="suppressing non-matching advice warnings">
<compile files="Suppression1.aj" options="-1.5,-showWeaveInfo">
<message kind="warning" line="13"/>
<message kind="warning" line="21"/>
</compile>
</ajc-test>
<ajc-test dir="java5/suppressedWarnings" vm="1.5" title="suppressing non-matching advice warnings when multiple source files involved">
<compile files="A.java,A1.aj,A2.aj,A3.aj" options="-1.5,-showWeaveInfo">
<message kind="warning" line="4" file="A1.aj"/>
<message kind="warning" line="4" file="A2.aj"/>
<message kind="warning" line="11" file="A2.aj"/>
<message kind="warning" line="4" file="A3.aj"/>
<message kind="warning" line="11" file="A3.aj"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" title="XLint warning for advice not applied with cflow(execution)" pr="93345">
<compile options="-Xlint,-1.5" files="PR93345.aj" >
<message kind="warning" line="7" text="advice defined in AnAspect has not been applied [Xlint:adviceDidNotMatch]"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" title="NPE in reflect implementation" pr="94167">
<compile files="PR94167.java"/>
<run class="reflect.PR94167"/>
</ajc-test>
<!-- ======================================================================================= -->
<!-- annotated aspect members -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/annotations/aspectMembers" title="annotated annotations (@Target)">
<compile files="a/Annotations.java,a/Foo.java" options="-1.5">
<message kind="error" line="16" text="The annotation @MethodAnnotation is disallowed for this location"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/aspectMembers" title="simple annotated aspect members">
<compile files="a/Annotations.java,a/AnnotatedAspect.aj" options="-1.5">
<message kind="warning" line="4" text="annotated type"/>
<message kind="warning" line="6" text="annotated field"/>
<message kind="warning" line="8" text="annotated method"/>
<message kind="warning" line="11" text="annotated constructor"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/aspectMembers" title="simple annotated aspect members with bad target">
<compile files="a/Annotations.java,a/AnnotatedAspect02.aj" options="-1.5">
<message kind="error" line="3" text="The annotation @MethodAnnotation is disallowed for this location"/>
<message kind="error" line="6" text="The annotation @TypeAnnotation is disallowed for this location"/>
<message kind="error" line="8" text="The annotation @FieldAnnotation is disallowed for this location"/>
<message kind="error" line="10" text="The annotation @AnnotationAnnotation is disallowed for this location"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/aspectMembers" title="annotated itds">
<compile files="a/Annotations.java,a/AnnotatedAspect03.aj" options="-1.5">
<message kind="warning" line="4" text="annotated type"/>
<message kind="warning" line="6" text="annotated field"/>
<message kind="warning" line="8" text="annotated field"/>
<message kind="warning" line="10" text="annotated method"/>
<message kind="warning" line="12" text="annotated constructor"/>
<message kind="warning" line="12" text="annotated field"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/aspectMembers" title="annotated itds with bad target">
<compile files="a/Annotations.java,a/AnnotatedAspect04.aj" options="-1.5">
<message kind="error" line="6" text="The annotation @ConstructorAnnotation is disallowed for this location"/>
<message kind="error" line="8" text="The annotation @FieldAnnotation is disallowed for this location"/>
<message kind="error" line="10" text="The annotation @TypeAnnotation is disallowed for this location"/>
<!-- known limitation...
<message kind="error" line="12" text="The annotation @MethodAnnotation is disallowed for this location"/>
-->
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/aspectMembers" title="annotated advice">
<compile files="a/Annotations.java,a/AnnotatedAspect05.aj" options="-1.5">
<message kind="warning" line="17"/>
</compile>
<run class="a.AnnotatedAspect05"/>
</ajc-test>
<ajc-test dir="java5/annotations/aspectMembers" title="annotated advice with bad target">
<compile files="a/Annotations.java,a/AnnotatedAspect06.aj" options="-1.5">
<message kind="error" line="6" text="The annotation @ConstructorAnnotation is disallowed for this location"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/aspectMembers" title="annotated pointcut">
<compile files="a/Annotations.java,a/AnnotatedAspect07.aj" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/aspectMembers" title="annotated declare statements">
<compile files="a/Annotations.java,a/AnnotatedAspect08.aj" options="-1.5">
</compile>
</ajc-test>
<!-- ======================================================================================= -->
<!-- ajdk examples -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: annotating aspects chapter">
<compile files="AnnotatingAspects.aj" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: annotating aspects chapter, ex 2">
<compile files="SuppressAj.aj" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: annotation pattern matching">
<compile files="AnnotationPatternMatching.aj,org/xyz/OrgXYZAnnotation.java" options="-1.5">
<message kind="warning" line="25" text="@Immutable"/>
<message kind="warning" line="25" text="!@Persistent"/>
<message kind="warning" line="29" text="!@Persistent"/>
<message kind="warning" line="31" text="!@Persistent"/>
<message kind="warning" line="33" text="!@Persistent"/>
<message kind="warning" line="29" text="@Foo @Goo"/>
<message kind="warning" line="29" text="@(Foo || Goo)"/>
<message kind="warning" line="31" text="@(Foo || Goo)"/>
<message kind="warning" line="33" text="@(org.xyz..*)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: annotation type pattern matching">
<compile files="AnnotationsInTypePatterns.aj,org/xyz/OrgXYZAnnotation.java,org/xyz/Types.java,org/abc/Types.java,anns/Immutable.java,anns/NonPersistent.java" options="-1.5">
<message kind="warning" line="23" text="(@Immutable *)"/>
<message kind="warning" line="32" text="(@Immutable *)"/>
<message kind="warning" line="3" text="(@Immutable *)"/>
<message kind="warning" line="5" text="(@Immutable *)"/>
<message kind="warning" line="8" text="(@Immutable *)"/>
<message kind="warning" line="25" text="(!@Immutable *)"/>
<message kind="warning" line="27" text="(!@Immutable *)"/>
<message kind="warning" line="29" text="(!@Immutable *)"/>
<message kind="warning" line="5" text="(!@Immutable *)"/>
<message kind="warning" line="6" text="(!@Immutable *)"/>
<message kind="warning" line="2" text="(!@Immutable *)"/>
<message kind="warning" line="2" text="(!@Immutable *)"/>
<message kind="warning" line="5" text="(!@Immutable *)"/>
<message kind="warning" line="3" text="@Immutable (org.xyz.* || org.abc.*)"/>
<message kind="warning" line="5" text="@Immutable (org.xyz.* || org.abc.*)"/>
<message kind="warning" line="8" text="@Immutable (org.xyz.* || org.abc.*)"/>
<message kind="warning" line="32" text="((@Immutable Foo+) || Goo)"/>
<message kind="warning" line="27" text="((@Immutable Foo+) || Goo)"/>
<message kind="warning" line="3" text="@(Immutable || NonPersistent) org.xyz..*"/>
<message kind="warning" line="6" text="@(Immutable || NonPersistent) org.xyz..*"/>
<message kind="warning" line="8" text="@(Immutable || NonPersistent) org.xyz..*"/>
<message kind="warning" line="8" text="@Immutable @NonPersistent org.xyz..*"/>
<message kind="warning" line="6" text="@(@Inherited *) org.xyz..*"/>
<message kind="warning" line="8" text="@(@Inherited *) org.xyz..*"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: annotations in sig patterns">
<compile files="AnnotationsInSignaturePatterns.aj,anns/Cachable.java,anns/SensitiveData.java,anns/Persisted.java,Classified.java,anns/Immutable.java,Secure.java,Catastrophic.java,Oneway.java,anns/Transaction.java,org/xyz/SignatureTypes.java" options="-1.5">
<message kind="warning" line="32" text="@SensitiveData * *"/>
<message kind="warning" line="7" text="@SensitiveData * *"/>
<message kind="warning" line="13" text="@SensitiveData * *"/>
<message kind="warning" line="7" text="@SensitiveData List org.xyz..*.*"/>
<message kind="warning" line="11" text="(@SensitiveData *) org.xyz..*.*"/>
<message kind="warning" line="13" text="(@SensitiveData *) org.xyz..*.*"/>
<message kind="warning" line="50" text="@Foo (@Goo *) (@Hoo *).*"/>
<message kind="warning" line="38" text="@Persisted @Classified * *"/>
<message kind="warning" line="44" text="@Oneway * *(..)"/>
<message kind="warning" line="18" text="@Transaction * (@Persisted org.xyz..*).*(..)"/>
<message kind="warning" line="52" text="* *.*(@Immutable *,..)"/>
<message kind="warning" line="53" text="* *.*(@Immutable *,..)"/>
<message kind="warning" line="54" text="* *.*(@Immutable *,..)"/>
<message kind="warning" line="62" text="within(@Secure *)"/>
<message kind="warning" line="63" text="within(@Secure *)"/>
<message kind="warning" line="66" text="staticinitialization(@Persisted *)"/>
<message kind="warning" line="17" text="staticinitialization(@Persisted *)"/>
<message kind="warning" line="56" text="call(@Oneway * *(..))"/>
<message kind="warning" line="28" text="execution(public (@Immutable *) org.xyz..*.*(..))"/>
<message kind="warning" line="26" text="set(@Cachable * *)"/>
<message kind="warning" line="80" text="handler(!@Catastrophic *)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: runtime annotations">
<compile files="RuntimeTypeMatching.aj" options="-1.5">
<message kind="warning" line="121" text="@within(Foo)"/>
<message kind="warning" line="122" text="@within(Foo)"/>
</compile>
<run class="RuntimeTypeMatching">
<stdout>
<line text="This information is TOP-SECRET"/>
<line text="@target(Classified) at call(void A.a())"/>
<line text="@this(Foo) at execution(void B.b())"/>
<line text="Classified data being passed at call(void B.callA(A))"/>
<line text="Classified data being passed at execution(void B.callA(A))"/>
<line text="This information is TOP-SECRET"/>
<line text="@target(Classified) at call(Class java.lang.Object.getClass())"/>
<line text="1 @Foo()"/>
<line text="1 @Foo()"/>
<line text="1 @Classified(classification=TOP-SECRET)"/>
<line text="This information is TOP-SECRET"/>
<line text="Entering critical join point with priority 3"/>
<line text="Entering critical join point with reflectively obtained priority 3"/>
<line text="@target(Classified) at call(void A.a())"/>
<line text="@this(Foo) at execution(void B.callA(A))"/>
<line text="(Class) Transaction required at execution(void ByeByeEJB.method1())"/>
<line text="(Method) Transaction required at execution(void ByeByeEJB.method1())"/>
<line text="(Class) Transaction required at execution(void ByeByeEJB.method2())"/>
<line text="(Method) Transaction required at execution(void ByeByeEJB.method2())"/>
<line text="(Class) Transaction required at execution(void ByeByeEJB.method3())"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: @retention checking">
<compile files="RetentionTime.aj" options="-1.5">
<message kind="error" line="8" text="Annotation type Goo does not have runtime retention"/>
<message kind="error" line="13" text="Annotation type Goo does not have runtime retention"/>
<message kind="error" line="18" text="Annotation type Goo does not have runtime retention"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: @inherited">
<compile files="AnnotationInheritance.aj" options="-1.5">
<message kind="warning" line="16" text="annotatedMethodCall()"/>
<message kind="warning" line="17" text="annotatedMethodCall()"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: deow-ann">
<compile files="DeclaresWithAnnotations.aj,org/xyz/model/Model.java" options="-1.5">
<message kind="warning" line="27" text="Expensive operation called from within performance critical section"/>
<message kind="error" line="26" text="Untrusted code should not call the model classes directly"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: decp-ann">
<compile files="DecpAnnotations.aj" options="-1.5">
</compile>
<run class="DecpAnnotations">
<stdout>
<line text="Test Foo is not secured: PASS"/>
<line text="Test Goo is secured: PASS"/>
<line text="goo credentials: none"/>
<line text="Test BankAccount is not secured: PASS"/>
<line text="Test PrivateBankAccount is not secured: PASS"/>
<line text="Test BusinessBankAccount is secured: PASS"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: dec precedence">
<compile files="PrecedenceAnnotations.aj" options="-1.5">
</compile>
<run class="PrecedenceAnnotations">
<stdout>
<line text="@Security S2"/>
<line text="S1"/>
<line text="@Performance P2"/>
<line text="P1"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/ajdkExamples" title="ajdk: dec annotation">
<compile files="DeclareAnnotation.aj,org/xyz/model/Model.java" options="-1.5">
<message kind="warning" line="3" text="@BusinessDomain"/>
<message kind="warning" line="43" text="@Secured"/>
<message kind="warning" line="44" text="@Secured"/>
<message kind="warning" line="55" text="@Secured"/>
<message kind="warning" line="62" text="@Persisted"/>
<message kind="warning" line="68" text="@Persisted"/>
<message kind="warning" line="41" text="@Secured"/>
<message kind="warning" line="51" text="@Secured"/>
</compile>
<run class="DeclareAnnotation"/>
</ajc-test>
<ajc-test dir="java5/covariance/ajdk" title="ajdk: covariance">
<compile files="AJDKExamples.aj" options="-1.5">
<message kind="warning" line="43" text="call(* whoAreYou())"/>
<message kind="warning" line="44" text="call(* whoAreYou())"/>
<message kind="warning" line="43" text="call(* A.whoAreYou())"/>
<message kind="warning" line="44" text="call(* A.whoAreYou())"/>
<message kind="warning" line="43" text="call(A whoAreYou())"/>
<message kind="warning" line="44" text="call(A whoAreYou())"/>
<message kind="warning" line="44" text="call(A+ B.whoAreYou())"/>
<message kind="warning" line="44" text="call(B whoAreYou())"/>
<message kind="warning" line="44" text="call(B B.whoAreYou())"/>
</compile>
</ajc-test>
<ajc-test dir="java5/varargs/ajdk" title="ajdk: varargs">
<compile files="AJDKExamples.aj,org/xyz/Foo.java,org/xyz/Goo.java,org/xyz/Hoo.java" options="-1.5">
<message kind="warning" line="8" text="call vararg match"/>
<message kind="warning" line="14" text="execution vararg match"/>
<message kind="warning" line="5" text="init vararg match"/>
<message kind="warning" line="6" text="init vararg match"/>
<message kind="warning" line="27" text="single vararg"/>
<message kind="warning" line="28" text="single String[]"/>
<message kind="warning" line="18" text="single String[]"/>
</compile>
<run class="AJDKExamples">
<stdout>
<line text="Matched at call(void X.foo(int, String[]))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/pertypewithin/ajdk" title="ajdk: ptw">
<compile files="AJDKExamples.aj" options="-1.5"/>
<run class="org.xyz.foo.AJDKExamples">
<stdout>
<line text="true"/>
<line text="true"/>
<line text="There are 2 As"/>
<line text="There are 3 Bs"/>
</stdout>
</run>
</ajc-test>
<!-- ======================================================================================= -->
<!-- declare annotation -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/annotations/declare" title="basic declare annotation parse test">
<compile files="BasicParseTest.aj" options="-1.5">
</compile>
</ajc-test>
<!-- ======================================================================================= -->
<!-- declare annotation (@type) -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/annotations/declare" title="declare @type 1">
<compile files="DecaType1.java" options="-1.5"/>
<run class="DecaType1">
<stderr>
<line text="annotation is @MyAnnotation()"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type 2">
<compile files="DecaType2.java" options="-1.5,-Xlint:ignore" >
</compile>
<run class="DecaType2">
<stderr>
<line text="annotation on DecaType2 is @MyAnnotation()"/>
<line text="annotation on X is @MyAnnotation()"/>
<line text="annotation on MyAnnotation is @MyAnnotation()"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - with matching pointcut">
<compile files="DecaType3.java" options="-1.5"/>
<run class="DecaType3">
<stderr>
<line text="hello world"/>
<line text="advice running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - binary weaving">
<weave classesFiles="BaseTypes.java"
aspectsFiles="DecaTypeBin1.aj,Colored.java"
options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
</weave>
<run class="BaseTypes">
<stderr>
<line text="Color identified on class X"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - complex annotation - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
<stderr>
<line text="ComplexAnnotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - complex annotation - source weaving">
<compile files="BaseTypes.java,DecaTypeBin2.aj" options="-1.5"/>
<run class="BaseTypes">
<stderr>
<line text="ComplexAnnotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - two annotations hit one type - source weaving">
<compile files="BaseTypes.java,DecaTypeBin3.aj" options="-1.5"/>
<run class="BaseTypes">
<stderr>
<line text="Color identified on execution(void A.m())"/>
<line text="Fruit identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - two annotations hit one type - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin3.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
<stderr>
<line text="Color identified on execution(void A.m())"/>
<line text="Fruit identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 1) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaDecpInteractions1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
<stderr>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 1) - source weaving">
<compile files="BaseTypes.java,DecaDecpInteractions1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
<stderr>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 2) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaDecpInteractions2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
<stderr>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 2) - source weaving">
<compile files="BaseTypes.java,DecaDecpInteractions2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
<stderr>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 3) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaDecpInteractions3.aj" options="-1.5,-Xlint:ignore"/>
<run class="BaseTypes">
<stderr>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 3) - source weaving">
<compile files="BaseTypes.java,DecaDecpInteractions3.aj" options="-1.5,-Xlint:ignore"/>
<run class="BaseTypes">
<stderr>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 4) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaDecpInteractions4.aj" options="-1.5,-Xlint:ignore"/>
<run class="BaseTypes">
<stderr>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - declare parents interactions (order 4) - source weaving">
<compile files="BaseTypes.java,DecaDecpInteractions4.aj" options="-1.5,-Xlint:ignore"/>
<run class="BaseTypes">
<stderr>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Marker interface identified on execution(void A.m())"/>
<line text="Color annotation identified on execution(void A.m())"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - annotating an already annotated type - binary weaving">
<weave classesFiles="AnnotatedType.java" aspectsFiles="DecaTypeBin4.aj" options="-1.5,-Xlint:ignore"/>
<run class="AnnotatedType">
<stderr>
<line text="Color identified on execution(void AnnotatedType.m())"/>
<line text="Fruit identified on execution(void AnnotatedType.m())"/>
<line text="m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - annotating an already annotated type - source weaving">
<compile files="AnnotatedType.java,DecaTypeBin4.aj" options="-1.5,-Xlint:ignore"/>
<run class="AnnotatedType">
<stderr>
<line text="Color identified on execution(void AnnotatedType.m())"/>
<line text="Fruit identified on execution(void AnnotatedType.m())"/>
<line text="m() running"/>
</stderr>
</run>
</ajc-test>
<!--ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin5.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="15" text="The annotation @ColorM is disallowed for this location"/>
<message kind="error" line="16" text="The annotation @ColorC is disallowed for this location"/>
<message kind="error" line="18" text="The annotation @ColorF is disallowed for this location"/>
<message kind="error" line="19" text="The annotation @ColorP is disallowed for this location"/>
<message kind="error" line="20" text="The annotation @ColorL is disallowed for this location"/>
<message kind="error" line="21" text="The annotation @ColorPkg is disallowed for this location"/>
</weave>
<run class="BaseTypes">
<stderr>
<line text="ColorT identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test-->
<ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets - source weaving">
<compile files="BaseTypes.java,DecaTypeBin5.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="15" text="The annotation @ColorM is disallowed for this location"/>
<message kind="error" line="16" text="The annotation @ColorC is disallowed for this location"/>
<message king="error" line="17" text="A is not a valid target for annotation ColorA"/>
<message kind="error" line="18" text="The annotation @ColorF is disallowed for this location"/>
<message kind="error" line="19" text="The annotation @ColorP is disallowed for this location"/>
<message kind="error" line="20" text="The annotation @ColorL is disallowed for this location"/>
<message kind="error" line="21" text="The annotation @ColorPkg is disallowed for this location"/>
</compile>
</ajc-test>
<!--ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets (using type patterns) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin6.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" line="15" text="A is not a valid target for annotation ColorM"/>
<message kind="warning" line="16" text="A is not a valid target for annotation ColorC"/>
<message kind="warning" line="17" text="A is not a valid target for annotation ColorL"/>
<message kind="warning" line="17" text="B is not a valid target for annotation ColorL"/>
<message kind="warning" line="17" text="C is not a valid target for annotation ColorL"/>
</weave>
<run class="BaseTypes">
<stderr>
<line text="ColorT identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="ColorT identified on execution(void A.m())"/>
<line text="A.m() running"/>
<line text="ColorT identified on execution(void A.m())"/>
<line text="A.m() running"/>
</stderr>
</run>
</ajc-test-->
<ajc-test dir="java5/annotations/declare" title="declare @type - annotations with different targets (using type patterns) - source weaving">
<compile files="BaseTypes.java,DecaTypeBin6.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="15" text="The annotation @ColorM is disallowed for this location"/>
<message kind="error" line="16" text="The annotation @ColorC is disallowed for this location"/>
<message kind="error" line="17" text="The annotation @ColorL is disallowed for this location"/>
<message kind="error" line="18" text="The annotation @ColorF is disallowed for this location"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - complex decp decAtType interactions - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin7.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
</weave>
<run class="BaseTypes">
<stderr>
<line text="Color identified on execution(void A.m())"/>
<line text="Fruit identified on execution(void A.m())"/>
<line text="Chocolate identified on execution(void A.m())"/>
<line text="M1 at execution(void A.m())"/>
<line text="M2 at execution(void A.m())"/>
<line text="M3 at execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Fruit identified on execution(void B.m())"/>
<line text="Chocolate identified on execution(void B.m())"/>
<line text="M1 at execution(void B.m())"/>
<line text="M2 at execution(void B.m())"/>
<line text="M3 at execution(void B.m())"/>
<line text="B.m() running"/>
<line text="Fruit identified on execution(void C.m())"/>
<line text="Chocolate identified on execution(void C.m())"/>
<line text="M1 at execution(void C.m())"/>
<line text="M2 at execution(void C.m())"/>
<line text="M3 at execution(void C.m())"/>
<line text="C.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - complex decp decAtType interactions - source weaving">
<compile files="BaseTypes.java,DecaTypeBin7.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="BaseTypes">
<stderr>
<line text="Color identified on execution(void A.m())"/>
<line text="Fruit identified on execution(void A.m())"/>
<line text="Chocolate identified on execution(void A.m())"/>
<line text="M1 at execution(void A.m())"/>
<line text="M2 at execution(void A.m())"/>
<line text="M3 at execution(void A.m())"/>
<line text="A.m() running"/>
<line text="Fruit identified on execution(void B.m())"/>
<line text="Chocolate identified on execution(void B.m())"/>
<line text="M1 at execution(void B.m())"/>
<line text="M2 at execution(void B.m())"/>
<line text="M3 at execution(void B.m())"/>
<line text="B.m() running"/>
<line text="Fruit identified on execution(void C.m())"/>
<line text="Chocolate identified on execution(void C.m())"/>
<line text="M1 at execution(void C.m())"/>
<line text="M2 at execution(void C.m())"/>
<line text="M3 at execution(void C.m())"/>
<line text="C.m() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types - source weaving">
<compile files="BaseTypes.java,DecaTypeBin8.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="8" text="A is not a valid target for annotation ColorA"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin8.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="8" text="A is not a valid target for annotation ColorA"/>
</weave>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types (uses pattern) - source weaving">
<compile files="BaseTypes.java,DecaTypeBin9.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" line="8" text="A is not a valid target for annotation ColorA"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - trying to put annotation targetting annos on normal types (uses pattern) - binary weaving">
<weave classesFiles="BaseTypes.java" aspectsFiles="DecaTypeBin9.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" line="8" text="A is not a valid target for annotation ColorA"/>
</weave>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - covering enum and class element values - source weaving">
<compile files="EnumAndClassValues.aj,FunkyAnnotations.java" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="FunkyAnnotations">
<stderr>
<line text="hello world"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare @type - covering enum and class element values - binary weaving">
<weave aspectsFiles="EnumAndClassValues.aj" classesFiles="FunkyAnnotations.java" options="-1.5 -Xdev:Pinpoint" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="FunkyAnnotations">
<stderr>
<line text="advice running: Red"/>
<line text="advice running: class java.lang.Integer"/>
<line text="method running"/>
</stderr>
</run>
</ajc-test>
<!-- ======================================================================================= -->
<!-- declare annotation (@field) -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - simple source weaving">
<compile files="Base.java,Colored.java,AtField1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - simple binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="AtField1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two the same on one - source weaving">
<compile files="Base.java,Colored.java,TwoOnOneField.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="int Base.publicIntField - already has an annotation of type Colored"/>
</compile>
<run class="Base">
<stderr>
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two the same on one - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="TwoOnOneField.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="int Base.publicIntField - already has an annotation of type Colored"/>
</weave>
<run class="Base">
<stderr>
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two different on one - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,TwoOnOneField2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
</compile>
<run class="Base">
<stderr>
<line text="Colored field access at set(int Base.publicIntField)"/>
<line text="Fruit field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - two different on one - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="TwoOnOneField2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
</weave>
<run class="Base">
<stderr>
<line text="Colored field access at set(int Base.publicIntField)"/>
<line text="Fruit field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - wrong target - source weaving">
<compile files="Base.java,Colored.java,WrongTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="8" text="The annotation @MethodColoring is disallowed for this location"/>
<message kind="error" line="9" text="The annotation @TypeColoring is disallowed for this location"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - right target - source weaving">
<compile files="Base.java,Colored.java,RightTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - right target - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="RightTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Colored field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,RecursiveFields.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Fruit field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="RecursiveFields.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Fruit field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application (other order) - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,RecursiveFields2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Fruit field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atfield" title="declare @field - recursive application (other order) - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="RecursiveFields2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Fruit field access at set(int Base.publicIntField)"/>
</stderr>
</run>
</ajc-test>
<!-- incorrect target type for annotation on field -->
<!-- incorrect target type for annotation on method -->
<!-- two annotations on one method -->
<!-- two of the same annotation on one method - error -->
<!-- two of the same on one using pattern spec - lint -->
<!-- need some incorrect signatures in the declare @statements - e.g. declare @constructor: public Base(int): XXX; will blow things up as it uses Base rather than new -->
<!-- incorrect target type for annotation on ctor -->
<!-- two annotations on one ctor -->
<!-- two of the same annotation on one ctor - error -->
<!-- two of the same on one using pattern spec - lint -->
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method - simple source weaving">
<compile files="Base.java,Colored.java,AtMethod1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Colored method invocation at call(void Base.m1())"/>
<line text="m1() running"/>
<line text="m2() running"/>
<line text="m3() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method - simple binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="AtMethod1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Colored method invocation at call(void Base.m1())"/>
<line text="m1() running"/>
<line text="m2() running"/>
<line text="m3() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @constructor - simple source weaving">
<compile files="Base.java,Colored.java,AtCtor1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Colored constructor invocation at call(Base(int))"/>
<line text="m1() running"/>
<line text="m2() running"/>
<line text="m3() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @constructor - simple binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="AtCtor1.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Colored constructor invocation at call(Base(int))"/>
<line text="m1() running"/>
<line text="m2() running"/>
<line text="m3() running"/>
</stderr>
</run>
</ajc-test>
<!-- These tests verify both @method and @ctor behavior - they are so similar it is OK to have them together... -->
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - wrong target - source weaving">
<compile files="Base.java,Colored.java,WrongTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="error" line="8" text="The annotation @MethodColoring is disallowed for this location"/>
<message kind="error" line="9" text="The annotation @TypeColoring is disallowed for this location"/>
<message kind="error" line="10" text="The annotation @MethodColoring is disallowed for this location"/>
<message kind="error" line="11" text="The annotation @TypeColoring is disallowed for this location"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - right target - source weaving">
<compile files="Base.java,Colored.java,RightTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Colored ctor call at call(Base(int))"/>
<line text="Colored method call at call(void Base.m1())"/>
<line text="m1() running"/>
<line text="m2() running"/>
<line text="m3() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - right target - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="RightTarget.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="Base">
<stderr>
<line text="Colored ctor call at call(Base(int))"/>
<line text="Colored method call at call(void Base.m1())"/>
<line text="m1() running"/>
<line text="m2() running"/>
<line text="m3() running"/>
</stderr>
</run>
</ajc-test>
<!-- check @method/@ctor/@field recursively applying, can only happen if a pattern for one of them includes an annotation -->
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two the same on one - source weaving">
<compile files="Base.java,Colored.java,TwoOnOneMember.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="void Base.m1() - already has an annotation of type Colored"/>
<message kind="warning" text="void Base.<init>(int) - already has an annotation of type Colored"/>
</compile>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two the same on one - binary weaving">
<weave classesFiles="Base.java,Colored.java" aspectsFiles="TwoOnOneMember.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
<message kind="warning" text="void Base.m1() - already has an annotation of type Colored"/>
<message kind="warning" text="void Base.<init>(int) - already has an annotation of type Colored"/>
</weave>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two different on one - source weaving">
<compile files="Base.java,Colored.java,Fruit.java,TwoOnOneMember2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
</compile>
<run class="Base">
<stderr>
<line text="Colored ctor call at Base.java:11"/>
<line text="Fruit ctor call at Base.java:11"/>
<line text="Colored method call at Base.java:15"/>
<line text="Fruit method call at Base.java:15"/>
<line text="m1() running"/>
<line text="m2() running"/>
<line text="m3() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare/atmethodctor" title="declare @method @ctor - two different on one - binary weaving">
<weave classesFiles="Base.java,Colored.java,Fruit.java" aspectsFiles="TwoOnOneMember2.aj" options="-1.5" xlintfile="ignoreTypeNotExposed.properties">
</weave>
<run class="Base">
<stderr>
<line text="Colored ctor call at Base.java:11"/>
<line text="Fruit ctor call at Base.java:11"/>
<line text="Colored method call at Base.java:15"/>
<line text="Fruit method call at Base.java:15"/>
<line text="m1() running"/>
<line text="m2() running"/>
<line text="m3() running"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/declare" title="declare all annotations on one class - source weaving">
<compile files="DeathByAnnotations.aj" options="-1.5,-emacssym" xlintfile="ignoreTypeNotExposed.properties"/>
<run class="p.q.DeathByAnnotations"/>
</ajc-test>
<!-- ======================================================================================= -->
<!-- annotation binding with ITDs -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd method is annotated">
<compile files="BindingWithAnnotatedItds1.aj" options="-1.5"/>
<run class="BindingWithAnnotatedItds1">
<stderr>
<line text="Found apple at jp execution(int A.m()) (BindingWithAnnotatedItds1.aj:8)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd field is annotated">
<compile files="BindingWithAnnotatedItds2.aj" options="-1.5"/>
<run class="BindingWithAnnotatedItds2">
<stderr>
<line text="Found banana at jp set(int A.i) (BindingWithAnnotatedItds2.aj:16)"/>
<line text="Found apple at jp set(String A.j) (BindingWithAnnotatedItds2.aj:17)"/>
<line text="Found orange at jp set(int[] A.k) (BindingWithAnnotatedItds2.aj:18)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd ctor is annotated">
<compile files="BindingWithAnnotatedItds3.aj" options="-1.5"/>
<run class="BindingWithAnnotatedItds3">
<stderr>
<line text="Found pear at jp execution(A(String)) (BindingWithAnnotatedItds3.aj:8)"/>
<line text="Found orange at jp execution(A(int)) (BindingWithAnnotatedItds3.aj:10)"/>
<line text="Found tomato at jp execution(A(boolean)) (BindingWithAnnotatedItds3.aj:12)"/>
</stderr>
</run>
</ajc-test>
<!-- ======================================================================================= -->
<!-- declare annotation targetting ITDs -->
<!-- ======================================================================================= -->
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd method is annotated via declare">
<compile files="BindingWithDeclaredAnnotationItds1.aj" options="-1.5,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds1">
<stderr>
<line text="Found orange at jp call(int A.m()) (BindingWithDeclaredAnnotationItds1.aj:16)"/>
<line text="Found orange at jp execution(int A.m()) (BindingWithDeclaredAnnotationItds1.aj:8)"/>
<line text="Found banana at jp call(int A.n()) (BindingWithDeclaredAnnotationItds1.aj:17)"/>
<line text="Found banana at jp execution(int A.n()) (BindingWithDeclaredAnnotationItds1.aj:10)"/>
<line text="Found tomato at jp call(int A.o()) (BindingWithDeclaredAnnotationItds1.aj:18)"/>
<line text="Found tomato at jp execution(int A.o()) (BindingWithDeclaredAnnotationItds1.aj:12)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd field is annotated via declare">
<compile files="BindingWithDeclaredAnnotationItds2.aj" options="-1.5,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds2">
<stderr>
<line text="Found orange at jp set(int A.i) (BindingWithDeclaredAnnotationItds2.aj:16)"/>
<line text="Found banana at jp set(String A.j) (BindingWithDeclaredAnnotationItds2.aj:17)"/>
<line text="Found apple at jp set(boolean[] A.k) (BindingWithDeclaredAnnotationItds2.aj:18)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd field is annotated multiple times via declare">
<compile files="BindingWithDeclaredAnnotationItds3.aj" options="-1.5,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds3">
<stderr>
<line text="Found fruit orange at jp set(int A.i) (BindingWithDeclaredAnnotationItds3.aj:13)"/>
<line text="Found drink margarita at jp set(int A.i) (BindingWithDeclaredAnnotationItds3.aj:13)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/annotations/binding" title="simple binding annotation values where itd ctor is annotated via declare">
<compile files="BindingWithDeclaredAnnotationItds4.aj" options="-1.5,-emacssym"/>
<run class="BindingWithDeclaredAnnotationItds4">
<stderr>
<line text="Found pear at jp execution(A(String)) (BindingWithDeclaredAnnotationItds4.aj:8)"/>
<line text="Found orange at jp execution(A(int)) (BindingWithDeclaredAnnotationItds4.aj:10)"/>
<line text="Found tomato at jp execution(A(boolean)) (BindingWithDeclaredAnnotationItds4.aj:12)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/suppressedWarnings" title="SuppressAjWarnings raised during matching">
<compile files="SuppressionDuringMatching.aj" options="-1.5">
</compile>
</ajc-test>
<!-- ============================================================== -->
<ajc-test dir="options/aspectpath" title="dirs on aspectpath">
<compile files="MyAspect.aj" options="-d out"/>
<compile files="MyClass.java" options="-aspectpath out">
<message kind="warning" line="3" text="a method"/>
</compile>
</ajc-test>
<!-- ============================================================== -->
<!-- Start of generics tests -->
<!-- ============================================================== -->
<ajc-test dir="java5/generics" title="ITD with parameterized type" vm="1.5">
<compile files="ITDReturningParameterizedType.aj" options="-1.5"/>
<run class="ITDReturningParameterizedType"/>
</ajc-test>
<ajc-test dir="java5/annotations/binding/bugs" title="AtArgs causes a VerifyError: Unable to pop operand off an empty stack" vm="1.5">
<compile files="Test3.java" options="-1.5"/>
<run class="Test3"/>
</ajc-test>
<ajc-test dir="java5/generics/bugs/pr91267" title="NPE using generic methods in aspects 1" vm="1.5">
<compile files="TestBug1.aj" options="-1.5"/>
<run class="TestBug1"/>
</ajc-test>
<ajc-test dir="java5/generics/bugs/pr91267" title="NPE using generic methods in aspects 2" vm="1.5">
<compile files="TestBug2.aj" options="-1.5"/>
<run class="TestBug2"/>
</ajc-test>
<ajc-test dir="java5/generics/bugs" title="Generics problem with Set" vm="1.5">
<compile files="PR91053.aj" options="-1.5"/>
<run class="PR91053"/>
</ajc-test>
<ajc-test dir="java5/generics/bugs" title="Compilation error on generic member introduction" vm="1.5">
<compile files="PR87282.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/bugs" title="Parameterized types on introduced fields not correctly recognized" vm="1.5">
<compile files="PR88606.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" title="enum called Enum, annotation called Annotation, etc">
<compile files="PR90827.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" title="Internal compiler error">
<compile files="PR86832.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" title="Exploding compile time with if() statements in pointcut">
<compile files="PR94086.aj" options="-1.5"/>
</ajc-test>
<!-- generic abstract aspects... -->
<ajc-test dir="java5/generics/genericaspects" title="static pointcut parameterization suite">
<compile files="GenericAspectPointcuts.aj" options="-1.5">
<message kind="warning" line="62" text="kinded-returning-ok"/>
<message kind="warning" line="52" text="kinded-declaring-ok"/>
<message kind="warning" line="67" text="kinded-declaring-ok"/>
<message kind="warning" line="50" text="kinded-params-ok"/>
<message kind="warning" line="56" text="kinded-throws-ok"/>
<message kind="warning" line="64" text="and-ok"/>
<message kind="warning" line="60" text="or-ok"/>
<message kind="warning" line="64" text="or-ok"/>
<message kind="warning" line="67" text="or-ok"/>
<message kind="warning" line="1" text="not-ok"/>
<message kind="warning" line="42" text="not-ok"/>
<message kind="warning" line="72" text="not-ok"/>
<message kind="warning" line="59" text="within-ok"/>
<message kind="warning" line="64" text="withincode-ok"/>
<message kind="warning" line="53" text="handler-ok"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="dynamic pointcut parameterization suite">
<compile files="GenericAspectRuntimePointcuts.aj" options="-1.5">
</compile>
<run class="GenericAspectRuntimePointcuts">
<stdout>
<line text="target-ok an X execution(void X.foo())"/>
<line text="@this-ok @MyAnnotation(value=my-value) execution(void X.foo())"/>
<line text="@target-ok @MyAnnotation(value=my-value) execution(void X.foo())"/>
<line text="@within-ok @MyAnnotation(value=my-value) execution(void X.foo())"/>
<line text="cflow-ok an X a Y set(Y X.y)"/>
<line text="@annotation-ok-sub @MyAnnotation(value=bar) execution(void X.bar())"/>
<line text="@annotation-ok @MyAnnotation(value=bar) execution(void X.bar())"/>
<line text="target-ok an X execution(void X.bar())"/>
<line text="@this-ok @MyAnnotation(value=my-value) execution(void X.bar())"/>
<line text="@target-ok @MyAnnotation(value=my-value) execution(void X.bar())"/>
<line text="@within-ok @MyAnnotation(value=my-value) execution(void X.bar())"/>
<line text="@args-ok @MyAnnotation(value=my-value) execution(void Y.foo(X))"/>
<line text="args-ok an X execution(void Y.foo(X))"/>
<line text="this-ok a Y execution(void Y.foo(X))"/>
<line text="@this-ok @MyAnnotation(value=on Y) execution(void Y.foo(X))"/>
<line text="@target-ok @MyAnnotation(value=on Y) execution(void Y.foo(X))"/>
<line text="@within-ok @MyAnnotation(value=on Y) execution(void Y.foo(X))"/>
<line text="@annotation-ok-sub @MyAnnotation(value=my-value) execution(X Y.bar())"/>
<line text="@annotation-ok @MyAnnotation(value=my-value) execution(X Y.bar())"/>
<line text="this-ok a Y execution(X Y.bar())"/>
<line text="@this-ok @MyAnnotation(value=on Y) execution(X Y.bar())"/>
<line text="@target-ok @MyAnnotation(value=on Y) execution(X Y.bar())"/>
<line text="@within-ok @MyAnnotation(value=on Y) execution(X Y.bar())"/>
<line text="@withincode-ok @MyAnnotation(value=my-value) get(X Y.x)"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="reference to pointcut in generic class">
<compile files="PointcutsInGenericClasses.aj" options="-1.5">
<message kind="warning" line="16" text="a match"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="reference to non-parameterized pointcut in generic class">
<compile files="PointcutsInGenericClasses2.aj" options="-1.5">
<message kind="error" line="10" text="cannot use a raw type reference to refer to a pointcut in a generic type (use a parameterized reference instead)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="declare parents parameterized">
<compile files="DecPGenericTest.aj" options="-1.5">
<message kind="warning" line="16" text="success"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="declare precedence parameterized">
<compile files="DecPrecedenceGenericTest.aj" options="-1.5 -Xdev:Pinpoint">
</compile>
<run class="DecPrecedenceGenericTest">
<stdout>
<line text="A1"/>
<line text="A2"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="declare annotation parameterized">
<compile files="DecAnnGenericTest.aj" options="-1.5">
<message kind="warning" line="18" text="@type ok"/>
<message kind="warning" line="20" text="@field ok"/>
<message kind="warning" line="22" text="@constructor ok"/>
<message kind="warning" line="24" text="@method ok"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="multi-level generic abstract aspects">
<compile files="MultiLevelGenericTest.aj" options="-1.5">
<message kind="warning" line="23" text="base match"/>
<message kind="warning" line="23" text="middle match"/>
<message kind="warning" line="23" text="top match"/>
</compile>
</ajc-test>
<!-- generic bugs -->
<ajc-test dir="java5/generics/bugs" title="ITD method with generic arg">
<compile files="PR97763.aj" options="-1.5"/>
<run class="PR97763">
<stderr>
<line text="Number of entries=2"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="bugs150" title="NPE at ClassScope.java:660 when compiling generic class">
<compile files="PR95993.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/bugs" title="Problems resolving type name inside generic class">
<compile files="PR95992.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150" pr="100227" title="inner class with generic enclosing class">
<compile files="pr100227.aj" options="-1.5"/>
<run class="pr100227">
<stderr>
<line text="Outer.Inner.inner=2"/>
<line text="Outer.Inner.p() executing"/>
<line text="Generic_Outer.Inner.inner=4"/>
<line text="Generic_Outer.Inner.p() executing"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="bugs150" pr="100260" title="methods inherited from a generic parent">
<compile files="pr100260.aj" options="-1.5"/>
<run class="pr100260"/>
</ajc-test>
<!-- end of generic bugs -->
<!-- generic aspects -->
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 1">
<compile files="GenericAspect1.aj" options="-1.5">
<message kind="error" line="2" text="only abstract aspects can have type parameters"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 2">
<compile files="GenericAspect2.aj" options="-1.5">
<message kind="error" line="9" text="a generic super-aspect must be fully parameterized in an extends clause"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 3">
<compile files="GenericAspect3.aj" options="-1.5"/>
<run class="GenericAspect3">
<stderr>
<line text="A"/>
<line text="B"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 4">
<compile files="ParentChildRelationship.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="generic aspect with declare warning using type vars">
<compile files="DeclareWarningInGenericAspect.aj" options="-1.5">
<message kind="warning" line="16" text="this method takes a T!"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="generic aspect with execution advice using type vars">
<compile files="ExecutionAdviceInGenericAspect.aj" options="-1.5">
</compile>
<run class="ExecutionAdviceInGenericAspect">
<stdout>
<line text="I matched at execution(void C.foo(String))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="generic aspect with anonymous pointcut">
<compile files="AnonymousPointcutInGenericAspect.aj" options="-1.5">
</compile>
<run class="AnonymousPointcutInGenericAspect">
<stdout>
<line text="I matched at execution(void C.foo(String))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="generic aspect declare parents">
<compile files="DeclareParentsWithTypeVars.aj" options="-1.5">
</compile>
<run class="DeclareParentsWithTypeVars">
</run>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects" title="generic aspect declare soft">
<compile files="DeclareSoftWithTypeVars.aj" options="-1.5">
</compile>
<run class="DeclareSoftWithTypeVars">
<stderr>
<line text="handled exception: io, io, it's off to work we go..."/>
<line text="Successfully converted to domain exception"/>
</stderr>
</run>
</ajc-test>
<!-- ajdk example -->
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 5 (ajdk)">
<compile files="Blob.java,BlobContainment.aj,ParentChildRelationship.aj" options="-1.5"/>
<run class="BlobContainment"/>
</ajc-test>
<!-- same as above but all types in one file -->
<ajc-test dir="java5/generics/genericaspects" title="generic aspects - 6 (ajdk)">
<compile files="TheBigOne.java" options="-1.5"/>
<run class="TheBigOne"/>
</ajc-test>
<!-- end of generic aspects -->
<!-- generic ITDs -->
<ajc-test dir="java5/generics/itds" title="ITDs on generic type">
<compile files="Parse5.java" options="-1.5">
<message kind="error" line="9"/>
<message kind="error" line="11"/>
<message kind="error" line="13"/>
<message kind="error" line="15"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="itd of non static member">
<compile files="A.java" options="-1.5"/>
<run class="A">
<stderr>
<line text="min(2,4)=>2"/>
<line text="max(2,4)=>4"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="itd of static member">
<compile files="B.java" options="-1.5"/>
<run class="B">
<stderr>
<line text="min(2,4)=>2"/>
<line text="max(2,4)=>4"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="itd using type parameter">
<compile files="C.java" options="-1.5"/>
<run class="C">
<stderr>
<line text="fillthisin..."/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="itd incorrectly using type parameter">
<compile files="D.java" options="-1.5"/>
<run class="D">
<stderr>
<line text="fillthisin..."/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="static generic method itd">
<compile files="StaticGenericMethodITD.aj" options="-1.5"/>
<run class="StaticGenericMethodITD">
<stderr>
<line text="First=10"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic ctor itd - 1">
<compile files="GenericCtorITD1.aj" options="-1.5"/>
<run class="GenericCtorITD1"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic ctor itd - 2">
<compile files="GenericCtorITD2.aj" options="-1.5"/>
<run class="GenericCtorITD2"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic ctor itd - 3">
<compile files="GenericCtorITD3.aj" options="-1.5"/>
<run class="GenericCtorITD3"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="parameterized method itd - 1">
<compile files="ParameterizedMethodITD1.aj" options="-1.5"/>
<run class="ParameterizedMethodITD1"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="parameterized method itd - 2">
<compile files="ParameterizedMethodITD2.aj" options="-1.5">
<message kind="error" line="9" text="The method simple(List<? extends Number>) in the type Base is not applicable for the arguments (List<A>)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="parameterized method itd - 3">
<compile files="ParameterizedMethodITD3.aj" options="-1.5">
<message kind="error" line="9" text="The method simple(List<? super A>) in the type Base is not applicable for the arguments (List<B>)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="parameterized method itd - 4">
<compile files="ParameterizedMethodITD4.aj" options="-1.5"/>
<run class="ParameterizedMethodITD4"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 1">
<compile files="GenericMethodITD1.aj" options="-1.5"/>
<run class="GenericMethodITD1"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 2">
<compile files="GenericMethodITD2.aj" options="-1.5">
<message kind="error" line="9" text="Bound mismatch: The generic method simple(List<? extends E>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <E extends Number>"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 3">
<compile files="GenericMethodITD3.aj" options="-1.5"/>
<run class="GenericMethodITD3"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 4">
<compile files="GenericMethodITD4.aj" options="-1.5"/>
<run class="GenericMethodITD4"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 5">
<compile files="GenericMethodITD5.aj" options="-1.5">
<message kind="error" line="10" text="The method simple(List<E>, List<E>) in the type Base is not applicable for the arguments (List<A>, List<B>)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 6">
<compile files="GenericMethodITD6.aj" options="-1.5"/>
<run class="GenericMethodITD6"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 7">
<compile files="GenericMethodITD7.aj" options="-1.5"/>
<run class="GenericMethodITD7"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 8">
<compile files="GenericMethodITD8.aj" options="-1.5">
<message kind="error" line="10" text="The method simple(List<E>, List<? extends E>) in the type Base is not applicable for the arguments (List<Number>, List<String>)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 9">
<compile files="GenericMethodITD9.aj" options="-1.5"/>
<run class="GenericMethodITD9"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 10">
<compile files="GenericMethodITD10.aj" options="-1.5">
<message kind="error" line="10" text="Bound mismatch: The generic method crazy(List<R>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <R extends Comparable<? super R>>"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 11">
<compile files="GenericMethodITD11.aj" options="-1.5"/>
<run class="GenericMethodITD11"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 12">
<compile files="GenericMethodITD12.aj" options="-1.5">
<message kind="error" line="10" text="Bound mismatch: The generic method crazy(List<R>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <R extends Foo<? extends R>>"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 13">
<compile files="GenericMethodITD13.aj" options="-1.5"/>
<run class="GenericMethodITD13"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 14">
<compile files="GenericMethodITD14.aj" options="-1.5">
<message kind="error" line="10" text="Bound mismatch: The generic method crazy(List<R>) of type Base is not applicable for the arguments (List<A>). The inferred type A is not a valid substitute for the bounded parameter <R extends Foo<? super R>>"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic method itd - 15">
<compile files="GenericMethodITD15.aj" options="-1.5"/>
<run class="GenericMethodITD15"/>
</ajc-test>
<!-- visibility -->
<ajc-test dir="java5/generics/itds/visibility" title="public itds">
<compile files="PublicITDs.aj" options="-1.5"/>
<run class="PublicITDs"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/visibility" title="private itds">
<compile files="PrivateITDs.aj" options="-1.5"/>
<run class="PrivateITDs"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/visibility" title="package itds">
<compile files="PackageITDs.aj" options="-1.5"/>
<run class="PackageITDs"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/visibility" title="public itds with errors">
<compile files="PublicITDsErrors.aj" options="-1.5">
<message kind="error" line="13" text="The method publicMethod2(List<R>, List<R>) in the type Base is not applicable for the arguments (List<Double>, List<Float>)"/>
<message kind="error" line="15" text="The constructor Base(List<Double>, Map<Integer,String>) is undefined"/>
</compile>
</ajc-test>
<!-- targetting different types -->
<ajc-test dir="java5/generics/itds/differingTargets" title="targetting interface">
<compile files="TargettingInterface.aj" options="-1.5"/>
<run class="TargettingInterface"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/differingTargets" title="targetting aspect">
<compile files="TargettingAspect.aj" options="-1.5"/>
<run class="TargettingAspect"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/differingTargets" title="targetting class">
<compile files="TargettingClass.aj" options="-1.5"/>
<run class="TargettingClass"/>
</ajc-test>
<!-- sharing type variables between the ITD and the generic type -->
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 1">
<compile files="FieldA.aj" options="-1.5"/>
<run class="FieldA"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 2">
<compile files="FieldB.aj" options="-1.5">
<message kind="error" line="16" text="Incorrect number of type parameters supplied. The generic type Base<N,M> has 2 type parameters, not 1."/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 3">
<compile files="FieldC.aj" options="-1.5"/>
<run class="FieldC"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 4">
<compile files="FieldD.aj" options="-1.5"/>
<run class="FieldD"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 5">
<compile files="FieldE.aj" options="-1.5"/>
<run class="FieldE"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 6">
<compile files="FieldF.aj" options="-1.5"/>
<run class="FieldF"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 7">
<compile files="FieldG.aj" options="-1.5"/>
<run class="FieldG"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 8">
<compile files="FieldH.aj" options="-1.5"/>
<run class="FieldH"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type - 9">
<compile files="FieldI.aj" options="-1.5">
<message kind="error" line="7" text="Type mismatch: cannot convert from List<String> to List<Integer>"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -10">
<compile files="FieldJ.aj" options="-1.5"/>
<run class="FieldJ"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -11">
<compile files="FieldK.aj" options="-1.5"/>
<run class="FieldK"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -12">
<compile files="FieldL.aj" options="-1.5"/>
<run class="FieldL"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -13">
<compile files="FieldM.aj" options="-1.5"/>
<run class="FieldM"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -14">
<compile files="FieldN.aj" options="-1.5">
<message kind="error" line="11" text="Type parameters can not be specified in the ITD target type - the target type I is not generic."/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -15">
<compile files="FieldO.aj" options="-1.5">
<message kind="error" line="11" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -16">
<compile files="FieldP.aj" options="-1.5">
<message kind="error" line="10" text="static intertype field declarations cannot refer to type variables from the target generic type"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd using type variable from target type -17">
<compile files="FieldQ.aj" options="-1.5"/>
<run class="FieldQ"/>
</ajc-test>
<!-- Now intertype declared methods on generic types that use the target types type vars -->
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A1">
<compile files="MethodA.aj" options="-1.5"/>
<run class="MethodA"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A2">
<compile files="MethodA2.aj" options="-1.5"/>
<run class="MethodA2"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A3">
<compile files="MethodA3.aj" options="-1.5"/>
<run class="MethodA3"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - A4">
<compile files="MethodA4.aj" options="-1.5"/>
<run class="MethodA4"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - B1">
<compile files="MethodB.aj" options="-1.5">
<message kind="error" line="16" text="Incorrect number of type parameters supplied. The generic type Base<N,M> has 2 type parameters, not 1."/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - C1">
<compile files="MethodC.aj" options="-1.5"/>
<run class="MethodC"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - D1">
<compile files="MethodD.aj" options="-1.5"/>
<run class="MethodD"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - E1">
<compile files="MethodE.aj" options="-1.5"/>
<run class="MethodE"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - F1">
<compile files="MethodF.aj" options="-1.5"/>
<run class="MethodF"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - G1">
<compile files="MethodG.aj" options="-1.5"/>
<run class="MethodG"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - H1">
<compile files="MethodH.aj" options="-1.5"/>
<run class="MethodH"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - I1">
<compile files="MethodI.aj" options="-1.5">
<message kind="error" line="6" text="Type mismatch: cannot convert from List<Integer> to List<String>"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - I2">
<compile files="MethodI2.aj" options="-1.5">
<message kind="error" line="7" text="The method m(List<Integer>) in the type Base<Integer> is not applicable for the arguments (List<String>)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - J1">
<compile files="MethodJ.aj" options="-1.5"/>
<run class="MethodJ"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - K1">
<compile files="MethodK.aj" options="-1.5"/>
<run class="MethodK"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - L1">
<compile files="MethodL.aj" options="-1.5"/>
<run class="MethodL"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - M1">
<compile files="MethodM.aj" options="-1.5"/>
<run class="MethodM"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - M2">
<compile files="MethodM2.aj" options="-1.5"/>
<run class="MethodM2"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - N1">
<compile files="MethodN.aj" options="-1.5">
<message kind="error" line="11" text="Type parameters can not be specified in the ITD target type - the target type I is not generic."/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - O1">
<compile files="MethodO.aj" options="-1.5">
<message kind="error" line="11" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - O2">
<compile files="MethodO2.aj" options="-1.5">
<message kind="error" line="11" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - P1">
<compile files="MethodP.aj" options="-1.5"/>
<run class="MethodP"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd using type variable from target type - Q1">
<compile files="MethodQ.aj" options="-1.5"/>
<run class="MethodQ"/>
</ajc-test>
<!-- Now intertype declared constructors on generic types that use the target types type vars -->
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - A1">
<compile files="CtorA.aj" options="-1.5"/>
<run class="CtorA"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - B1">
<compile files="CtorB.aj" options="-1.5">
<message kind="error" line="15" text="Incorrect number of type parameters supplied. The generic type Base<N,M> has 2 type parameters, not 1."/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - C1">
<compile files="CtorC.aj" options="-1.5"/>
<run class="CtorC"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - D1">
<compile files="CtorD.aj" options="-1.5"/>
<run class="CtorD"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - E1">
<compile files="CtorE.aj" options="-1.5"/>
<run class="CtorE"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - F1">
<compile files="CtorF.aj" options="-1.5"/>
<run class="CtorF"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - G1">
<compile files="CtorG.aj" options="-1.5"/>
<run class="CtorG"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - H1">
<compile files="CtorH.aj" options="-1.5"/>
<run class="CtorH"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="ctor itd using type variable from target type - I1">
<compile files="CtorI.aj" options="-1.5"/>
<run class="CtorI"/>
</ajc-test>
<!-- putting it all together, fields/methods/ctors and decps -->
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - A">
<compile files="GenericAspectA.aj" options="-1.5"/>
<run class="GenericAspectA"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - B">
<compile files="GenericAspectB.aj" options="-1.5"/>
<run class="GenericAspectB"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - C">
<compile files="GenericAspectC.aj" options="-1.5"/>
<run class="GenericAspectC"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - D">
<compile files="GenericAspectD.aj" options="-1.5"/>
<run class="GenericAspectD"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - E">
<compile files="GenericAspectE.aj" options="-1.5"/>
<run class="GenericAspectE"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - F">
<compile files="GenericAspectF.aj" options="-1.5"/>
<run class="GenericAspectF"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - G">
<compile files="GenericAspectG.aj" options="-1.5"/>
<run class="GenericAspectG"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - H">
<compile files="GenericAspectH.aj" options="-1.5">
<message kind="error" line="7" text="Type java.lang.String does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericAspect$SimpleI"/>
<message kind="error" line="16" text="The method m4(String) is undefined for the type Base"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - I">
<compile files="GenericAspectI.aj" options="-1.5"/>
<run class="GenericAspectI"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - J">
<compile files="GenericAspectJ.aj" options="-1.5"/>
<run class="GenericAspectJ"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - K">
<compile files="GenericAspectK.aj" options="-1.5">
<message kind="error" line="7" text="B does not meet the specification for type parameter 1 (L extends java.lang.Number) in generic type GenericAspect$SimpleI"/>
<message kind="error" line="16" text="The method m4(String) is undefined for the type Base"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - K2">
<compile files="GenericAspectK2.aj" options="-1.5">
<message kind="error" line="13" text="Type java.lang.String does not meet the specification for type parameter 2 (B extends java.lang.Number) in generic type GenericAspect"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - L">
<compile files="GenericAspectL.aj" options="-1.5"/>
<run class="GenericAspectL"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - M">
<compile files="GenericAspectM.aj" options="-1.5">
<message kind="error" line="23" text="The method m0(Integer) in the type GenericAspect<A,B>.SimpleI<Integer> is not applicable for the arguments (String)"/>
<message kind="error" line="24" text="The method m1(List<Integer>) in the type GenericAspect<A,B>.SimpleI<Integer> is not applicable for the arguments (List<String>)"/>
<message kind="error" line="25" text="Type mismatch: cannot convert from String to Integer"/>
<message kind="error" line="26" text="Type mismatch: cannot convert from List<String> to List<Integer>"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - N">
<compile files="GenericAspectN.aj" options="-1.5"/>
<run class="GenericAspectN"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - O">
<compile files="GenericAspectO.aj" options="-1.5">
<message kind="error" line="24" text="Cannot make a static reference to the non-static field Bottom.parent"/>
<message kind="error" line="26" text="The method add(Bottom) in the type List<Bottom> is not applicable for the arguments (Top)"/>
<message kind="error" line="27" text="Cannot make a static reference to the non-static field Top.children"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - P">
<compile files="GenericAspectP.aj" options="-1.5"/>
<run class="GenericAspectP"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - Q">
<compile files="GenericAspectQ.aj" options="-1.5"/>
<run class="GenericAspectQ"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - R">
<compile files="GenericAspectR.aj" options="-1.5"/>
<run class="GenericAspectR"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - S">
<compile files="GenericAspectS.aj" options="-1.5"/>
<run class="GenericAspectS"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - T">
<compile files="GenericAspectT.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - U">
<compile files="GenericAspectU.aj" options="-1.5"/>
<run class="GenericAspectU"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - V">
<compile files="GenericAspectV.aj" options="-1.5"/>
<run class="GenericAspectV"/>
</ajc-test>
<ajc-test dir="java5/generics/genericaspects/" title="uberaspects - W">
<compile files="GenericAspectW.aj" options="-1.5"/>
<run class="GenericAspectW"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="method itd sharing type variable with generic type">
<compile files="Simple.aj" options="-1.5"/>
<run class="Simple"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/sharing" title="field itd sharing type variable with generic type">
<compile files="Simple2.aj" options="-1.5"/>
<run class="Simple2"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="non static generic method itd - 2">
<compile files="NonstaticGenericCtorITD2.aj" options="-1.5"/>
<run class="NonstaticGenericCtorITD2"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="reusing type variable letters">
<compile files="ReusingLetters.aj" options="-1.5"/>
<run class="ReusingLetters"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="multiple generic itds in one file">
<compile files="BizarroSignatures.aj" options="-1.5"/>
<run class="BizarroSignatures"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="generic intertype field declaration, sharing type variable">
<compile files="FieldITDOnGenericType.aj" options="-1.5"/>
<run class="FieldITDOnGenericType">
<stderr>
<line text=">42"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 1">
<compile files="Parse1.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 2">
<compile files="Parse2.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 3">
<compile files="Parse3.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 4">
<compile files="Parse4.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 5">
<compile files="Parse5.java" options="-1.5">
<message kind="error" line="11" text="Incorrect number of type parameters supplied. The generic type Parse5<T,S> has 2 type parameters, not 3."/>
<message kind="error" line="13" text="Incorrect number of type parameters supplied. The generic type Parse5<T,S> has 2 type parameters, not 1."/>
<message kind="error" line="15" text="Intertype declarations can only be made on the generic type, not on a parameterized type. The name 'String' cannot be used as a type parameter, since it refers to a real type."/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds" title="Parsing generic ITDs - 6">
<compile files="Parse6.java" options="-1.5"/>
</ajc-test>
<!-- end of generic ITDs -->
<!-- generic decps -->
<ajc-test dir="java5/generics/decp" title="generic decp - simple">
<compile files="Basic.aj" options="-1.5"/>
<run class="Basic"/>
</ajc-test>
<ajc-test dir="java5/generics/decp" title="generic decp - implementing two variants #1">
<compile files="Basic2.aj" options="-1.5">
<message kind="error" line="11" text="Cannot declare parent I<java.lang.Integer> onto type Basic2 since it already has I<java.lang.String> in its hierarchy"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/decp" title="generic decp - implementing two variants #2">
<compile files="Basic2b.aj" options="-1.5">
<message kind="error" line="10" text="Cannot declare parent I<java.lang.Integer> onto type Basic2b since it already has I in its hierarchy"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/decp" title="generic decp - implementing two variants #3">
<compile files="Basic2c.aj" options="-1.5">
<message kind="error" line="10" text="Cannot declare parent I onto type Basic2c since it already has I<java.lang.Double> in its hierarchy"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/decp" title="generic decp - implementing two variants #4">
<compile files="Basic2d.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/decp/binary" title="generic decp binary - implementing two variants #1">
<weave classesFiles="Base1.java" aspectsFiles="Asp1.aj" options="-1.5,-showWeaveInfo">
<message kind="error" line="2" text="Cannot declare parent I<java.lang.Integer> onto type Base1 since it already has I<java.lang.String> in its hierarchy"/>
</weave>
</ajc-test>
<ajc-test dir="java5/generics/decp/binary" title="generic decp binary - implementing two variants #2">
<weave classesFiles="Base2.java" aspectsFiles="Asp2.aj" options="-1.5,-showWeaveInfo">
<message kind="error" line="2" text="Cannot declare parent I<java.lang.Integer> onto type Base2 since it already has I in its hierarchy"/>
</weave>
</ajc-test>
<ajc-test dir="java5/generics/decp/binary" title="generic decp binary - implementing two variants #3">
<weave classesFiles="Base3.java" aspectsFiles="Asp3.aj" options="-1.5,-showWeaveInfo">
<message kind="error" line="2" text="Cannot declare parent I onto type Base3 since it already has I<java.lang.Double> in its hierarchy"/>
</weave>
</ajc-test>
<ajc-test dir="java5/generics/decp/binary" title="generic decp binary - implementing two variants #4">
<weave classesFiles="Base4.java" aspectsFiles="Asp4.aj" options="-1.5,-showWeaveInfo"/>
</ajc-test>
<ajc-test dir="java5/generics/decp" title="generic decp - incorrect number of type parameters">
<compile files="Basic3.aj" options="-1.5">
<message kind="error" line="10" text="Type pattern does not match because the wrong number of type parameters are specified: Type I requires 1 parameter(s)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/decp" title="generic decp - specifying bounds">
<compile files="Basic4.aj" options="-1.5"/>
<run class="Basic4"/>
</ajc-test>
<ajc-test dir="java5/generics/decp" title="generic decp - specifying bounds but breaking them">
<compile files="Basic5.aj" options="-1.5">
<message kind="error" line="7" text="Type java.lang.String does not meet the specification for type parameter 1 (T extends java.lang.Number) in generic type I"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/decp" title="generic decp - with parameterized on the target">
<compile files="Basic6.aj" options="-1.5,-showWeaveInfo">
<message kind="weave" text="Extending interface set for type 'Basic6' (Basic6.aj) to include 'K<java.lang.Integer>' (Basic6.aj)"/>
</compile>
<run class="Basic6"/>
</ajc-test>
<!-- end of generic decps -->
<!-- generics/itds and binary weaving -->
<ajc-test dir="java5/generics/itds/binaryweaving" vm="1.5" title="binary weaving ITDs - A">
<compile files="TestA_generictype.java" outjar="code.jar" options="-1.5"/>
<compile files="TestA_aspect.aj,TestA_class.java" inpath="code.jar" options="-1.5"/>
<run class="TestA_class"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/binaryweaving" vm="1.5" title="binary weaving ITDs - B">
<compile files="TestB_generictype.java" outjar="code.jar" options="-1.5"/>
<compile files="TestB_aspect1.aj,TestB_aspect2.aj,TestB_class.java" inpath="code.jar" options="-1.5"/>
<run class="TestB_class"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/binaryweaving" vm="1.5" title="binary weaving ITDs - 1">
<compile files="BaseClass.java" outjar="code.jar" options="-1.5"/>
<compile files="A1.aj" inpath="code.jar" options="-1.5"/>
<run class="BaseClass">
<stderr>
<line text="Advice count=1"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds/binaryweaving" vm="1.5" title="binary weaving ITDs - 2">
<compile files="BaseClass.java,A1.aj" outjar="code.jar" options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'BaseClass' (BaseClass.java) has intertyped field from 'A1' (A1.aj:'java.util.List<java.lang.String> BaseClass.list1')"/>
<message kind="weave" text="Type 'BaseClass' (BaseClass.java:12) advised by after advice from 'A1' (A1.aj:7)"/>
</compile>
<compile files="A2.aj" inpath="code.jar" options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'BaseClass' (BaseClass.java) has intertyped field from 'A1' (A1.aj:'java.util.List<java.lang.String> BaseClass.list1')"/>
<message kind="weave" text="Type 'BaseClass' (BaseClass.java:12) advised by after advice from 'A1' (A1.aj:7)"/>
<message kind="weave" text="Type 'BaseClass' (BaseClass.java) has intertyped field from 'A2' (A2.aj:'java.util.List<Z> BaseClass.list2')"/>
<message kind="weave" text="Type 'BaseClass' (BaseClass.java:13) advised by after advice from 'A2' (A2.aj:8)"/>
</compile>
<run class="BaseClass">
<stderr>
<line text="Advice count=2"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds/binaryweaving" vm="1.5" title="binary weaving ITDs - 3">
<compile files="BaseClass.java,A1.aj,A2.aj" outjar="code.jar" options="-1.5"/>
<compile files="A3.aj" inpath="code.jar" options="-1.5"/>
<run class="BaseClass">
<stderr>
<line text="Advice count=3"/>
</stderr>
</run>
</ajc-test>
<!-- end of generics/itds and binary weaving -->
<!-- generics/itds and bridge methods -->
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 1">
<compile files="Sub1.java,Super1.java,X1.aj" options="-1.5"/>
<run class="X1"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 1 - binary">
<compile files="Sub1.java,Super1.java" outjar="code.jar" options="-1.5"/>
<compile files="X1.aj" inpath="code.jar" options ="-1.5"/>
<run class="X1"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 2">
<compile files="Sub2.java,Super2.java,X2.aj" options="-1.5"/>
<run class="X2"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 2 - binary">
<compile files="Sub2.java,Super2.java" outjar="code.jar" options="-1.5"/>
<compile files="X2.aj,Util.java" inpath="code.jar" options ="-1.5"/>
<run class="X2"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 3">
<compile files="Sub3.java,Super3.java,X3.aj" options="-1.5"/>
<run class="X3"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 3 - binary">
<compile files="Sub3.java,Super3.java" outjar="code.jar" options="-1.5"/>
<compile files="X3.aj" inpath="code.jar" options ="-1.5"/>
<run class="X3"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 4">
<compile files="Sub4.java,Super4.java,X4.aj" options="-1.5"/>
<run class="X4"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridge methods - 4 - binary">
<compile files="Sub4.java,Super4.java" outjar="code.jar" options="-1.5"/>
<compile files="X4.aj" inpath="code.jar" options ="-1.5"/>
<run class="X4"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="abstract intertype methods and covariant returns">
<compile files="pr91381.aj" options="-1.5"/>
<run class="pr91381"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" title="abstract intertype methods and covariant returns - error">
<compile files="pr91381_2.aj">
<message kind="error" line="15" text="The return type is incompatible with A.foo()"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridging with covariance 1 - normal">
<compile files="Bridging1.aj,Util.java" options="-1.5"/>
<run class="Bridging1">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="C D.method1() [BridgeMethod]"/>
<line text="D D.method1()"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="bridging with covariance 1 - itd">
<compile files="BridgingITD1.aj,Util.java" options="-1.5"/>
<run class="BridgingITD1">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="C D.method1() [BridgeMethod]"/>
<line text="D D.method1()"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 1 - normal">
<compile files="Bridging2.aj,Util.java" options="-1.5"/>
<run class="Bridging2">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.next() [BridgeMethod]"/>
<line text="java.lang.String D.next()"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 1 - itd">
<compile files="BridgingITD2.aj,Util.java" options="-1.5"/>
<run class="BridgingITD2">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.next() [BridgeMethod]"/>
<line text="java.lang.String D.next()"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 2 - normal">
<compile files="Bridging3.aj,Util.java" options="-1.5"/>
<run class="Bridging3">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.id(java.lang.Object) [BridgeMethod]"/>
<line text="java.lang.String D.id(java.lang.String)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="basic bridging with type vars - 2 - itd">
<compile files="BridgingITD3.aj,Util.java" options="-1.5"/>
<run class="BridgingITD3">
<stderr>
<line text="Number of methods defined for D is 2"/>
<line text="java.lang.Object D.id(java.lang.Object) [BridgeMethod]"/>
<line text="java.lang.String D.id(java.lang.String)"/>
</stderr>
</run>
</ajc-test>
<ajc-test dir="java5/generics/itds/bridgeMethods" vm="1.5" title="Abstract intertype method and covariant returns" pr="91381">
<compile files="pr91381.aj" options="-1.5,-showWeaveInfo">
<message kind="weave" text="Type 'A' (pr91381.aj) has intertyped method from 'pr91381' (pr91381.aj:'java.lang.Object A.foo()')"/>
</compile>
<run class="pr91381"/>
</ajc-test>
<!-- end of generics/itds and bridge methods -->
<!-- generics and pointcuts -->
<ajc-test dir="java5/generics/pointcuts" title="handler pcd and generics / type vars">
<compile files="GenericInterface.java,HandlerPointcutTests.aj" options="-1.5">
<message kind="error" line="4" text="Syntax error on token"/>
<message kind="error" line="8" text="a parameterized type pattern may not be used in a handler pointcut expression"/>
<message kind="warning" line="8" text="no match for this type name: T"/>
<message kind="error" line="11" text="a parameterized type pattern may not be used in a handler pointcut expression"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="pointcuts that dont allow type vars">
<compile files="PointcutsThatDontAllowTypeVars.aj" options="-1.5">
<message kind="error" line="3" text="Syntax error on token"/>
<message kind="error" line="5" text="Syntax error on token"/>
<message kind="error" line="7" text="Syntax error on token"/>
<message kind="error" line="9" text="Syntax error on token"/>
<message kind="error" line="11" text="Syntax error on token"/>
<message kind="error" line="13" text="Syntax error on token"/>
<message kind="error" line="15" text="Syntax error on token"/>
<message kind="error" line="17" text="Syntax error on token"/>
<message kind="error" line="19" text="Syntax error on token"/>
<message kind="error" line="21" text="Syntax error on token"/>
<message kind="error" line="23" text="Syntax error on token"/>
<message kind="error" line="25" text="Syntax error on token"/>
<message kind="error" line="27" text="Syntax error on token"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="annotation pcds with parameterized types">
<compile files="ParameterizedTypesInAtPCDs.aj" options="-1.5">
<message kind="error" line="3" text="Syntax error on token"/>
<message kind="error" line="5" text="Syntax error on token"/>
<message kind="error" line="7" text="Syntax error on token"/>
<message kind="error" line="9" text="Syntax error on token"/>
<message kind="error" line="11" text="Syntax error on token"/>
<message kind="error" line="13" text="Syntax error on token"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="annotation patterns with parameterized types">
<compile files="ParameterizedTypesInAnnotationPatterns.aj" options="-1.5">
<message kind="error" line="5" text="is not an annotation type"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization and parameterized types">
<compile files="GenericInterface.java,GenericImplementingClass.java,StaticInitializationWithParameterizedTypes.aj" options="-1.5">
<message kind="error" line="4" text="no static initialization join points for parameterized types, use raw type instead"/>
<message kind="error" line="6" text="no static initialization join points for parameterized types, use raw type instead"/>
<message kind="error" line="9" text="no static initialization join points for parameterized types, use raw type instead"/>
<message kind="error" line="11" text="no static initialization join points for parameterized types, use raw type instead"/>
<message kind="error" line="14" text="no static initialization join points for parameterized types, use raw type instead"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization and parameterized type matching">
<compile files="GenericInterface.java,GenericImplementingClass.java,ConcreteImplementingClass.java,ConcreteExtendingClass.java,StaticInitializationWithParameterizedTypesMatching.aj" options="-1.5">
<message kind="warning" line="1" text="clinit(GenericInterface<Double>+)"/>
<message kind="warning" line="3" text="clinit(GenericInterface<Double>+)"/>
<message kind="warning" line="3" text="clinit(GenericImplementingClass<Double>+)"/>
<message kind="warning" line="15" text="Type java.lang.String does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericInterface"/>
<message kind="warning" line="19" text="Type pattern does not match because the wrong number of type parameters are specified: Type GenericInterface requires 1 parameter(s)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization with generic types">
<compile files="GenericInterface.java,GenericImplementingClass.java,StaticInitializationWithGenericTypes.aj" options="-1.5">
<message kind="warning" line="1" text="one generic param, correct bounds"/>
<message kind="warning" line="1" text="doesn't matter what type variable name you use"/>
<message kind="warning" line="1" text="works with classes too"/>
<message kind="warning" line="4" text="Type T does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericInterface"/>
<message kind="warning" line="20" text="Type pattern does not match because the wrong number of type parameters are specified: Type GenericImplementingClass requires 1 parameter(s)"/>
<message kind="warning" line="24" text="Type N extends java.lang.Number & java.lang.Comparable does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericImplementingClass"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="staticinitialization with generic types - advanced">
<compile files="StaticInitializationWithGenericTypesAdvanced.aj" options="-1.5">
<message kind="warning" line="76" text="simple match"/>
<message kind="warning" line="76" text="matches since R and R extends Object are equivalent"/>
<message kind="warning" line="63" text="raw type should match"/>
<message kind="warning" line="63" text="matches all bounds"/>
<message kind="warning" line="63" text="still matches with interfaces specified in a different order"/>
<message kind="warning" line="69" text="matches with type variable inter-dependencies"/>
<message kind="warning" line="76" text="matches any generic type with one unbound type var"/>
<message kind="warning" line="82" text="any generic type with one type var bound to Number or subtype"/>
<message kind="warning" line="63" text="matches a generic type with any upper bound and i/f bounds"/>
<message kind="warning" line="76" text="matches a generic type with any upper bound and i/f bounds"/>
<message kind="warning" line="82" text="matches a generic type with any upper bound and i/f bounds"/>
<message kind="warning" line="19" text="Type X does not meet the specification for type parameter 1 (T extends java.lang.Number & java.lang.Comparable & java.io.Serializable) in generic type ClassWithInterfaceBounds"/>
<message kind="warning" line="23" text="Type Y extends java.lang.Number does not meet the specification for type parameter 1 (T extends java.lang.Number & java.lang.Comparable & java.io.Serializable) in generic type ClassWithInterfaceBounds"/>
<message kind="warning" line="27" text="Type Z extends java.lang.Number & java.lang.Comparable does not meet the specification for type parameter 1 (T extends java.lang.Number & java.lang.Comparable & java.io.Serializable) in generic type ClassWithInterfaceBounds"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="within pcd with various parameterizations and generic types - errors">
<compile files="WithinPointcutMatching.aj" options="-1.5">
<message kind="warning" line="4" text="no match for this type name: T"/>
<message kind="error" line="4" text="parameterized type pattern not supported by 'within', use a raw type pattern instead"/>
<message kind="error" line="5" text="parameterized type pattern not supported by 'within', use a raw type pattern instead"/>
<message kind="error" line="6" text="parameterized type pattern not supported by 'within', use a raw type pattern instead"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="within pcd with various parameterizations and generic types - warnings">
<compile files="WithinPointcutMatchingWarnings.aj" options="-1.5">
<message kind="warning" line="16" text="matched set correctly"/>
<message kind="warning" line="18" text="matched execution correctly"/>
<message kind="warning" line="24" text="init matched correctly"/>
<message kind="warning" line="32" text="matched parameterization ok"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="this and target with various parameterizations and generic types - errors">
<compile files="ThisAndTargetPointcutMatching.aj" options="-1.5">
<message kind="warning" line="4" text="no match for this type name: T"/>
<message kind="warning" line="5" text="no match for this type name: T"/>
<message kind="error" line="4" text="parameterized types not supported for this and target pointcuts (erasure limitation)"/>
<message kind="error" line="5" text="parameterized types not supported for this and target pointcuts (erasure limitation)"/>
<message kind="error" line="6" text="parameterized types not supported for this and target pointcuts (erasure limitation)"/>
<message kind="error" line="7" text="parameterized types not supported for this and target pointcuts (erasure limitation)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="this and target with various parameterizations and generic types - runtime">
<compile files="ThisAndTargetPointcutMatchingRuntime.aj" options="-1.5">
</compile>
<run class="ThisAndTargetPointcutMatchingRuntime">
<stdout>
<line text="set and this matched ok"/>
<line text="set and target matched ok"/>
<line text="call and target matched ok"/>
<line text="execution and this matched ok"/>
<line text="execution and target matched ok"/>
<line text="parameterized call and target matched ok"/>
<line text="parameterized call and this matched ok"/>
<line text="parameterized call and target matched ok"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="get and set with various parameterizations and generic types - errors">
<compile files="GetAndSetPointcutMatching.aj" options="-1.5">
<message kind="warning" line="4" text="no match for this type name: T"/>
<message kind="warning" line="5" text="no match for this type name: T"/>
<message kind="error" line="4" text="can't use parameterized type patterns for the declaring type of a get or set pointcut expression (use the raw type instead)"/>
<message kind="error" line="5" text="can't use parameterized type patterns for the declaring type of a get or set pointcut expression (use the raw type instead)"/>
<message kind="error" line="6" text="can't use parameterized type patterns for the declaring type of a get or set pointcut expression (use the raw type instead)"/>
<message kind="error" line="7" text="can't use parameterized type patterns for the declaring type of a get or set pointcut expression (use the raw type instead)"/>
<message kind="error" line="8" text="can't use parameterized type patterns for the declaring type of a get or set pointcut expression (use the raw type instead)"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="get and set with various parameterizations and generic declaring types">
<compile files="GetAndSetPointcutMatchingDeclaringType.aj" options="-1.5">
<message kind="warning" line="15" text="generic/param get matching ok"/>
<message kind="warning" line="33" text="generic/param get matching ok"/>
<message kind="warning" line="12" text="generic/param set matching ok"/>
<message kind="warning" line="32" text="generic/param set matching ok"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="get and set with various parameterizations and generic field types">
<compile files="GetAndSetPointcutMatchingFieldType.aj" options="-1.5">
<message kind="warning" line="13" text="raw field type matching in get ok"/>
<message kind="warning" line="14" text="raw field type matching in set ok"/>
<message kind="warning" line="49" text="erasure matching in get ok"/>
<message kind="warning" line="45" text="erasure matching in set ok"/>
<message kind="warning" line="53" text="erasure matching in get with params ok"/>
<message kind="warning" line="46" text="erasure matching in set with params ok"/>
<message kind="warning" line="72" text="parameterized type matching in set ok"/>
<message kind="warning" line="73" text="parameterized type matching in get ok"/>
<message kind="warning" line="74" text="parameterized type matching in set ok x2"/>
<message kind="warning" line="75" text="parameterized type matching in get ok x2"/>
<message kind="warning" line="83" text="wildcard set matching ok"/>
<message kind="warning" line="84" text="wildcard get matching ok"/>
<message kind="warning" line="85" text="wildcard extends set matching ok"/>
<message kind="warning" line="86" text="wildcard extends get matching ok"/>
<message kind="warning" line="87" text="wildcard super set matching ok"/>
<message kind="warning" line="88" text="wildcard super get matching ok"/>
<message kind="warning" line="73" text="the really wild show"/>
<message kind="warning" line="84" text="the really wild show"/>
<message kind="warning" line="86" text="the really wild show"/>
<message kind="warning" line="88" text="the really wild show"/>
<message kind="warning" line="53" text="the really wild show"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="init and preinit with parameterized declaring types">
<compile files="InitializationPointcutMatching.aj" options="-1.5">
<message kind="warning" line="4" text="no match for this type name: T"/>
<message kind="warning" line="5" text="no match for this type name: T"/>
<message kind="error" line="4" text="no [pre]initialization join points for parameterized types, use raw type instead"/>
<message kind="error" line="5" text="no [pre]initialization join points for parameterized types, use raw type instead"/>
<message kind="error" line="6" text="no [pre]initialization join points for parameterized types, use raw type instead"/>
<message kind="error" line="7" text="no [pre]initialization join points for parameterized types, use raw type instead"/>
<message kind="error" line="8" text="no [pre]initialization join points for parameterized types, use raw type instead"/>
<message kind="error" line="9" text="invalid throws pattern: a generic class may not be a direct or indirect subclass of Throwable"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="init and preinit with raw declaring type pattern">
<compile files="InitializationPointcutMatchingDeclaringType.aj" options="-1.5">
<message kind="warning" line="10" text="generic/param init matching ok"/>
<message kind="warning" line="10" text="generic/param preinit matching ok"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="init and preinit with parameterized parameter types">
<compile files="InitializationPointcutMatchingParamTypes.aj" options="-1.5">
<message kind="warning" line="36" text="raw param type matching in init ok"/>
<message kind="warning" line="36" text="raw param type matching in preinit ok"/>
<message kind="warning" line="37" text="erasure matching in init ok"/>
<message kind="warning" line="37" text="erasure matching in preinit ok"/>
<message kind="warning" line="38" text="erasure matching in init with params ok"/>
<message kind="warning" line="38" text="erasure matching in preinit with params ok"/>
<message kind="warning" line="48" text="parameterized type matching in init ok"/>
<message kind="warning" line="48" text="parameterized type matching in preinit ok"/>
<message kind="warning" line="49" text="parameterized type matching in init ok x2"/>
<message kind="warning" line="49" text="parameterized type matching in preinit ok x2"/>
<message kind="warning" line="50" text="wildcard init matching ok"/>
<message kind="warning" line="50" text="wildcard preinit matching ok"/>
<message kind="warning" line="51" text="wildcard extends init matching ok"/>
<message kind="warning" line="51" text="wildcard extends preinit matching ok"/>
<message kind="warning" line="52" text="wildcard super init matching ok"/>
<message kind="warning" line="52" text="wildcard super preinit matching ok"/>
<message kind="warning" line="48" text="the really wild show"/>
<message kind="warning" line="50" text="the really wild show"/>
<message kind="warning" line="51" text="the really wild show"/>
<message kind="warning" line="52" text="the really wild show"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="withincode with various parameterizations and generic types - errors">
<compile files="WithincodePointcutMatching.aj" options="-1.5">
<message kind="warning" line="4" text="no match for this type name: T"/>
<message kind="error" line="4" text="can't use parameterized type patterns for the declaring type of a withincode pointcut expression (use the raw type instead)"/>
<message kind="error" line="5" text="can't use parameterized type patterns for the declaring type of a withincode pointcut expression (use the raw type instead)"/>
<message kind="error" line="6" text="invalid throws pattern: a generic class may not be a direct or indirect subclass of Throwable"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="withincode with various parameterizations and generic types - matching">
<compile files="WithinCodePointcutMatchingParamAndReturnTypes.aj" options="-1.5">
<message kind="warning" line="35" text="raw param type matching in withincode ok"/>
<message kind="warning" line="36" text="raw param type matching in withincode ok"/>
<message kind="warning" line="67" text="raw return type matching in withincode ok"/>
<message kind="warning" line="38" text="erasure type matching in withincode ok"/>
<message kind="warning" line="39" text="erasure type matching in withincode ok"/>
<message kind="warning" line="42" text="erasure type matching in withincode ok"/>
<message kind="warning" line="62" text="withincode and parameterized method ok"/>
<message kind="warning" line="62" text="withincode and generic interface ok"/>
<message kind="warning" line="65" text="withincode and interface control test"/>
<message kind="warning" line="35" text="match on parameterized args"/>
<message kind="warning" line="36" text="match on parameterized args"/>
<message kind="warning" line="67" text="match on parameterized return type"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="withincode with overriding of inherited generic members">
<compile files="WithinCodeOverriding.aj" options="-1.5">
<message kind="warning" line="37" text="wildcard declaring type match on erasure"/>
<message kind="warning" line="50" text="wildcard declaring type match on erasure"/>
<message kind="warning" line="63" text="wildcard declaring type match on erasure"/>
<message kind="warning" line="37" text="base declaring type match on erasure"/>
<message kind="warning" line="50" text="base declaring type match on erasure"/>
<message kind="warning" line="63" text="base declaring type match on erasure"/>
<message kind="warning" line="50" text="sub type match on erasure"/>
<message kind="warning" line="63" text="parameterized match on erasure"/>
<message kind="warning" line="80" text="erasure match on base interface"/>
<message kind="warning" line="80" text="wildcard match on erasure"/>
<message kind="warning" line="80" text="parameterized match"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="execution pcd with raw type matching">
<compile files="GenericInterface.java,ConcreteImplementingClass.java,GenericImplementingClass.java,RawTypeMatching.aj" options="-1.5">
<message kind="warning" line="4" text="execution(* GenericInterface.*(..))"/>
<message kind="warning" line="5" text="execution(* GenericInterface.*(..))"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="execution pcd with raw signature matching">
<compile files="GenericInterface.java,ConcreteImplementingClass.java,GenericImplementingClass.java,RawSignatureMatching.aj" options="-1.5">
<message kind="warning" line="4" text="execution(* GenericInterface.asInt(Number))"/>
<message kind="warning" line="5" text="execution(* GenericInterface.asInt(Number))"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="execution with various parameterizations and generic types - errors">
<compile files="ExecutionPointcutMatchingErrorCases.aj" options="-1.5">
<message kind="warning" line="4" text="no match for this type name: T"/>
<message kind="error" line="4" text="can't use parameterized type patterns for the declaring type of an execution pointcut expression (use the raw type instead)"/>
<message kind="error" line="5" text="can't use parameterized type patterns for the declaring type of an execution pointcut expression (use the raw type instead)"/>
<message kind="error" line="6" text="invalid throws pattern: a generic class may not be a direct or indirect subclass of Throwable"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="execution with various parameterizations and generic types - matching">
<compile files="ExecutionPointcutMatchingParamAndReturnTypes.aj" options="-1.5">
<message kind="warning" line="35" text="raw param type matching in execution ok"/>
<message kind="warning" line="67" text="raw return type matching in execution ok"/>
<message kind="warning" line="38" text="erasure type matching in execution ok"/>
<message kind="warning" line="42" text="erasure type matching in execution ok"/>
<message kind="warning" line="61" text="execution and parameterized method ok"/>
<message kind="warning" line="61" text="execution and generic interface ok"/>
<message kind="warning" line="65" text="execution and interface control test"/>
<message kind="warning" line="35" text="match on parameterized args"/>
<message kind="warning" line="67" text="match on parameterized return type"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="execution with overriding of inherited generic members">
<compile files="ExecutionOverriding.aj" options="-1.5">
<message kind="warning" line="36" text="wildcard declaring type match on erasure"/>
<message kind="warning" line="49" text="wildcard declaring type match on erasure"/>
<message kind="warning" line="62" text="wildcard declaring type match on erasure"/>
<message kind="warning" line="36" text="base declaring type match on erasure"/>
<message kind="warning" line="49" text="base declaring type match on erasure"/>
<message kind="warning" line="62" text="base declaring type match on erasure"/>
<message kind="warning" line="49" text="sub type match on erasure"/>
<message kind="warning" line="62" text="parameterized match on erasure"/>
<message kind="warning" line="79" text="erasure match on base interface"/>
<message kind="warning" line="79" text="wildcard match on erasure"/>
<message kind="warning" line="79" text="parameterized match"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="execution pcd with generic declaring type and erased parameter types">
<compile files="GenericInterface.java,ConcreteImplementingClass.java,GenericImplementingClass.java,GenericDeclaringTypeWithParameterErasure.aj" options="-1.5">
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="execution pcd with generic signature matching">
<compile files="GenericInterface.java,ConcreteImplementingClass.java,GenericImplementingClass.java,GenericSignatureMatching.aj" options="-1.5">
<message kind="warning" line="4" text="execution<T>(* GenericInterface<T extends Number>.asInt(T))"/>
<message kind="warning" line="5" text="execution<T>(* GenericInterface<T extends Number>.asInt(T))"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="call with various parameterizations and generic types - errors">
<compile files="CallPointcutMatchingErrorCases.aj" options="-1.5">
<message kind="warning" line="4" text="no match for this type name: T"/>
<message kind="error" line="4" text="can't use parameterized type patterns for the declaring type of a call pointcut expression (use the raw type instead)"/>
<message kind="error" line="5" text="can't use parameterized type patterns for the declaring type of a call pointcut expression (use the raw type instead)"/>
<message kind="error" line="6" text="invalid throws pattern: a generic class may not be a direct or indirect subclass of Throwable"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="call with various parameterizations and generic types - matching">
<compile files="CallPointcutMatchingParamAndReturnTypes.aj" options="-1.5">
<message kind="warning" line="7" text="raw param type matching in call ok"/>
<message kind="warning" line="8" text="raw return type matching in call ok"/>
<message kind="warning" line="9" text="erasure type matching in call ok"/>
<message kind="warning" line="10" text="erasure type matching in call ok"/>
<message kind="warning" line="11" text="call and parameterized method ok"/>
<message kind="warning" line="11" text="call and generic interface ok"/>
<message kind="warning" line="12" text="call and interface control test"/>
<message kind="warning" line="7" text="match on parameterized args"/>
<message kind="warning" line="8" text="match on parameterized return type"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="call with overriding of inherited generic members">
<compile files="CallOverriding.aj" options="-1.5">
<message kind="warning" line="8" text="wildcard declaring type match on erasure"/>
<message kind="warning" line="9" text="wildcard declaring type match on erasure"/>
<message kind="warning" line="10" text="wildcard declaring type match on erasure"/>
<message kind="warning" line="8" text="base declaring type match on erasure"/>
<message kind="warning" line="9" text="base declaring type match on erasure"/>
<message kind="warning" line="10" text="base declaring type match on erasure"/>
<message kind="warning" line="9" text="sub type match on erasure"/>
<message kind="warning" line="10" text="parameterized match on erasure"/>
<message kind="warning" line="87" text="erasure match on base interface"/>
<message kind="warning" line="87" text="wildcard match on erasure"/>
<message kind="warning" line="87" text="parameterized match"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="call with bridge methods">
<compile files="CallWithBridgeMethods.aj" options="-1.5">
<message kind="warning" line="23" text="should match call to bridge method on L23, this is a real call!"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="args with raw type and generic / parameterized sigs">
<compile files="RawArgs.aj" options="-1.5">
</compile>
<run class="RawArgs">
<stdout>
<line text="args(List) match at call(void Generic.foo(List))"/>
<line text="args(List) match at call(void Generic.bar(List))"/>
<line text="args(List) match at call(void Generic.tada(List))"/>
<line text="args(List) match at call(void Generic.tada(List))"/>
<line text="args(List) match at call(void Generic.tada(List))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="args with parameterized type and generic / parameterized sigs">
<compile files="ArgsParameterized.aj" options="-1.5">
<message kind="warning" line="28" text="unchecked match of List<String> with List"/>
</compile>
<run class="ArgsParameterized">
<stdout>
<line text="args(List<String> matched at call(void Generic.foo(List))"/>
<line text="args(List<String> matched at call(void Generic.bar(List))"/>
<line text="args(List<String> matched at call(void Generic.tada(List))"/>
<line text="args(List<String> matched at call(void Generic.something(List))"/>
<line text="args(List<String> matched at call(void MustBeString.listit(List))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="args with parameterized type and wildcards">
<compile files="ArgsParameterizedWithWildcards.aj" options="-1.5">
<message kind="warning" line="10" text="unchecked match of List<Double> with List when argument is an instance of List"/>
<message kind="warning" line="10" text="unchecked match of List<Double> with List<? extends Double> when argument is an instance of List"/>
<message kind="warning" line="10" text="unchecked match of List<Double> with List<? extends Number> when argument is an instance of List"/>
<message kind="warning" line="10" text="unchecked match of List<Double> with List<?> when argument is an instance of List"/>
</compile>
<run class="ArgsParameterizedWithWildcards">
<stdout>
<line text="List<Double> matched at execution(void C.rawList(List))"/>
<line text="List<Double> matched at execution(void C.listOfSomething(List))"/>
<line text="List<Double> matched at execution(void C.listOfSomeNumber(List))"/>
<line text="List<Double> matched at execution(void C.listOfDouble(List))"/>
<line text="List<Double> matched at execution(void C.listOfSomeDouble(List))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="args with generic wildcard">
<compile files="ArgsListOfSomething.aj" options="-1.5">
</compile>
<run class="ArgsListOfSomething">
<stdout>
<line text="List<?> matches execution(void ArgsListOfSomething.rawList(List))"/>
<line text="List<?> matches execution(void ArgsListOfSomething.listOfString(List))"/>
<line text="List<?> matches execution(void ArgsListOfSomething.listOfSomething(List))"/>
<line text="List<?> matches execution(void ArgsListOfSomething.listOfSomethingExtends(List))"/>
<line text="List<?> matches execution(void ArgsListOfSomething.listOfSomethingSuper(List))"/>
<line text="wild map matches execution(void ArgsListOfSomething.mapit(Map))"/>
<line text="exact wild map matches execution(void ArgsListOfSomething.mapit(Map))"/>
<line text="super type exact matches execution(void ArgsListOfSomething.setOf(HashSet))"/>
<line text="super wild type matches execution(void ArgsListOfSomething.setOf(HashSet))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="args with generic wildcard extends">
<compile files="ArgsListOfSomethingExtends.aj" options="-1.5">
<message kind="warning" line="27" text="unchecked match of List<? extends Number> with List"/>
<message kind="warning" line="27" text="unchecked match of List<? extends Number> with List<?>"/>
</compile>
<run class="ArgsListOfSomethingExtends">
<stdout>
<line text="List<? extends Number> matches execution(void ArgsListOfSomethingExtends.rawList(List))"/>
<line text="List<? extends Number> matches execution(void ArgsListOfSomethingExtends.listOfNumber(List))"/>
<line text="List<? extends Number> matches execution(void ArgsListOfSomethingExtends.listOfDouble(List))"/>
<line text="List<? extends Number> matches execution(void ArgsListOfSomethingExtends.listOfSomething(List))"/>
<line text="List<? extends Number> matches execution(void ArgsListOfSomethingExtends.listOfSomethingExtends(List))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="args with generic wildcard super">
<compile files="ArgsListOfSomethingSuper.aj" options="-1.5">
<message kind="warning" line="32" text="unchecked match of List<? super Number> with List"/>
<message kind="warning" line="32" text="unchecked match of List<? super Number> with List<?>"/>
<message kind="warning" line="32" text="unchecked match of List<? super Number> with List<? extends Number>"/>
</compile>
<run class="ArgsListOfSomethingSuper">
<stdout>
<line text="List<? super Number> matches execution(void ArgsListOfSomethingSuper.rawList(List))"/>
<line text="List<? super Number> matches execution(void ArgsListOfSomethingSuper.listOfObject(List))"/>
<line text="List<? super Number> matches execution(void ArgsListOfSomethingSuper.listOfNumber(List))"/>
<line text="List<? super Number> matches execution(void ArgsListOfSomethingSuper.listOfSomething(List))"/>
<line text="List<? super Number> matches execution(void ArgsListOfSomethingSuper.listOfSomethingSuper(List))"/>
<line text="List<? super Number> matches execution(void ArgsListOfSomethingSuper.listOfSomethingExtendsNumber(List))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="generic method matching">
<compile files="GenericMethods.aj" options="-1.5">
<message kind="warning" line="19" text="static generic method match"/>
<message kind="warning" line="34" text="static generic method match"/>
<message kind="warning" line="24" text="instance generic method match"/>
<message kind="warning" line="39" text="instance generic method match"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/pointcuts" title="generic wildcards in signature matching">
<compile files="GenericWildcardsInSignatureMatching.aj" options="-1.5">
<message kind="warning" line="5" text="set of a list"/>
<message kind="warning" line="7" text="exact nested wildcard match"/>
<message kind="warning" line="7" text="wildcard nested wildcard match"/>
<message kind="warning" line="11" text="super"/>
<message kind="warning" line="15" text="super wild match"/>
</compile>
</ajc-test>
<!-- end of generics and pointcuts tests -->
<ajc-test dir="java5/generics/afterAdvice" title="after throwing with parameterized throw type">
<compile files="AfterThrowing.aj" options="-1.5">
<message kind="error" line="6" text="cannot convert from List<String> to Throwable"/>
</compile>
</ajc-test>
<ajc-test dir="java5/generics/afterAdvice" title="after returning with raw type and generic / parameterized sigs">
<compile files="AfterReturningRawType.aj" options="-1.5">
</compile>
<run class="AfterReturningRawType">
<stdout>
<line text="returning(List) match at call(List Generic.foo(List))"/>
<line text="returning(List) match at call(List Generic.bar(List))"/>
<line text="returning(List) match at call(List Generic.tada(List))"/>
<line text="returning(List) match at call(List Generic.tada(List))"/>
<line text="returning(List) match at call(List Generic.tada(List))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/afterAdvice" title="after returning with parameterized type and generic / parameterized sigs">
<compile files="AfterReturningParameterized.aj" options="-1.5">
<message kind="warning" line="28" text="unchecked match of List<String> with List"/>
</compile>
<run class="AfterReturningParameterized">
<stdout>
<line text="returning(List<String> matched at call(List Generic.foo(List))"/>
<line text="returning(List<String> matched at call(List Generic.bar(List))"/>
<line text="returning(List<String> matched at call(List Generic.tada(List))"/>
<line text="returning(List<String> matched at call(List Generic.something(List))"/>
<line text="returning(List<String> matched at call(List MustBeString.listit(List))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/afterAdvice" title="after returning with parameterized type and wildcards">
<compile files="AfterReturningParameterizedWithWildcards.aj" options="-1.5">
<message kind="warning" line="10" text="unchecked match of List<Double> with List when argument is an instance of List"/>
<message kind="warning" line="10" text="unchecked match of List<Double> with List<? extends Double> when argument is an instance of List"/>
<message kind="warning" line="10" text="unchecked match of List<Double> with List<? extends Number> when argument is an instance of List"/>
<message kind="warning" line="10" text="unchecked match of List<Double> with List<?> when argument is an instance of List"/>
</compile>
<run class="AfterReturningParameterizedWithWildcards">
<stdout>
<line text="List<Double> matched at call(List C.rawList(List))"/>
<line text="List<Double> matched at call(List C.listOfSomething(List))"/>
<line text="List<Double> matched at call(List C.listOfSomeNumber(List))"/>
<line text="List<Double> matched at call(List C.listOfDouble(List))"/>
<line text="List<Double> matched at call(List C.listOfSomeDouble(List))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/afterAdvice" title="after returning with generic wildcard">
<compile files="AfterReturningListOfSomething.aj" options="-1.5">
</compile>
<run class="AfterReturningListOfSomething">
<stdout>
<line text="List<?> matches execution(List AfterReturningListOfSomething.rawList(List))"/>
<line text="List<?> matches execution(List AfterReturningListOfSomething.listOfString(List))"/>
<line text="List<?> matches execution(List AfterReturningListOfSomething.listOfSomething(List))"/>
<line text="List<?> matches execution(List AfterReturningListOfSomething.listOfSomethingExtends(List))"/>
<line text="List<?> matches execution(List AfterReturningListOfSomething.listOfSomethingSuper(List))"/>
<line text="wild map matches execution(Map AfterReturningListOfSomething.mapit(Map))"/>
<line text="exact wild map matches execution(Map AfterReturningListOfSomething.mapit(Map))"/>
<line text="super type exact matches execution(HashSet AfterReturningListOfSomething.setOf(HashSet))"/>
<line text="super wild type matches execution(HashSet AfterReturningListOfSomething.setOf(HashSet))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/afterAdvice" title="after returning with generic wildcard extends">
<compile files="AfterReturningListOfSomethingExtends.aj" options="-1.5">
<message kind="warning" line="27" text="unchecked match of List<? extends Number> with List"/>
<message kind="warning" line="27" text="unchecked match of List<? extends Number> with List<?>"/>
</compile>
<run class="AfterReturningListOfSomethingExtends">
<stdout>
<line text="List<? extends Number> matches execution(List AfterReturningListOfSomethingExtends.rawList(List))"/>
<line text="List<? extends Number> matches execution(List AfterReturningListOfSomethingExtends.listOfNumber(List))"/>
<line text="List<? extends Number> matches execution(List AfterReturningListOfSomethingExtends.listOfDouble(List))"/>
<line text="List<? extends Number> matches execution(List AfterReturningListOfSomethingExtends.listOfSomething(List))"/>
<line text="List<? extends Number> matches execution(List AfterReturningListOfSomethingExtends.listOfSomethingExtends(List))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="java5/generics/afterAdvice" title="after returning with generic wildcard super">
<compile files="AfterReturningListOfSomethingSuper.aj" options="-1.5">
<message kind="warning" line="32" text="unchecked match of List<? super Number> with List"/>
<message kind="warning" line="32" text="unchecked match of List<? super Number> with List<?>"/>
<message kind="warning" line="32" text="unchecked match of List<? super Number> with List<? extends Number>"/>
</compile>
<run class="AfterReturningListOfSomethingSuper">
<stdout>
<line text="List<? super Number> matches execution(List AfterReturningListOfSomethingSuper.rawList(List))"/>
<line text="List<? super Number> matches execution(List AfterReturningListOfSomethingSuper.listOfObject(List))"/>
<line text="List<? super Number> matches execution(List AfterReturningListOfSomethingSuper.listOfNumber(List))"/>
<line text="List<? super Number> matches execution(List AfterReturningListOfSomethingSuper.listOfSomething(List))"/>
<line text="List<? super Number> matches execution(List AfterReturningListOfSomethingSuper.listOfSomethingSuper(List))"/>
<line text="List<? super Number> matches execution(List AfterReturningListOfSomethingSuper.listOfSomethingExtendsNumber(List))"/>
</stdout>
</run>
</ajc-test>
<ajc-test title="ajdk notebook: erasure matching examples" dir="java5/generics/ajdk">
<compile files="ErasureMatching.aj" options="-1.5">
<message kind="warning" line="18" text="static generic method match"/>
<message kind="warning" line="21" text="instance generic method match"/>
<message kind="warning" line="31" text="method in generic type match"/>
<message kind="warning" line="28" text="field in generic type match"/>
</compile>
</ajc-test>
<ajc-test title="ajdk notebook: simple parameterized type matching examples" dir="java5/generics/ajdk">
<compile files="SimpleParameterizedTypeExamples.aj" options="-1.5">
<message kind="warning" line="34" text="get myStrings 1"/>
<message kind="warning" line="34" text="get myStrings 2"/>
<message kind="warning" line="38" text="get myStrings 1"/>
<message kind="warning" line="38" text="get myStrings 2"/>
<message kind="warning" line="35" text="get myFloats 1"/>
<message kind="warning" line="35" text="get myFloats 2"/>
<message kind="warning" line="35" text="get myFloats 3"/>
<message kind="warning" line="34" text="getter 1"/>
<message kind="warning" line="35" text="getter 1"/>
<message kind="warning" line="34" text="getter 2"/>
<message kind="warning" line="35" text="getter 2"/>
<message kind="warning" line="34" text="getter 3"/>
<message kind="warning" line="35" text="getter 4"/>
<message kind="warning" line="25" text="call 1"/>
<message kind="warning" line="25" text="call 2"/>
</compile>
</ajc-test>
<ajc-test title="ajdk notebook: mixed parameterized types and generic methods" dir="java5/generics/ajdk">
<compile files="MixedParameterizedAndTypeVariables.aj" options="-1.5">
<message kind="warning" line="13" text="erasure match"/>
<message kind="warning" line="13" text="mixed match"/>
<message kind="warning" line="13" text="params only match"/>
</compile>
</ajc-test>
<ajc-test title="ajdk notebook: signature matching with generic wildcards" dir="java5/generics/ajdk">
<compile files="SignatureWildcards.aj" options="-1.5">
<message kind="warning" line="13" text="any list"/>
<message kind="warning" line="15" text="any list"/>
<message kind="warning" line="17" text="any list"/>
<message kind="warning" line="13" text="only foo"/>
<message kind="warning" line="15" text="some list"/>
<message kind="warning" line="13" text="any list with upper bound"/>
<message kind="warning" line="15" text="any list with upper bound"/>
</compile>
</ajc-test>
<ajc-test title="ajdk notebook: bridge method examples" dir="java5/generics/ajdk">
<compile files="BridgeMethodExamples.aj" options="-1.5">
<message kind="warning" line="17" text="double match"/>
<message kind="warning" line="25" text="double match"/>
<message kind="warning" line="9" text="match"/>
<message kind="warning" line="11" text="match"/>
</compile>
</ajc-test>
<ajc-test title="ajdk notebook: args examples" dir="java5/generics/ajdk">
<compile files="ArgsExamples.aj" options="-1.5">
<message kind="warning" line="15" text="unchecked match of List<Double> with List<? extends Number> when argument is an instance of List at join point method-execution(void C.goo(List<? extends Number>)) [Xlint:uncheckedArgument]"/>
<message kind="warning" line="53" text="unchecked match"/>
</compile>
<run class="ArgsExamples">
<stdout>
<line text="args(List)"/>
<line text="args List of String"/>
<line text="args(List)"/>
<line text="args List of Double"/>
<line text="args(List)"/>
<line text="args List of Double"/>
</stdout>
</run>
</ajc-test>
<ajc-test title="ajdk notebook: after returning examples" dir="java5/generics/ajdk">
<compile files="AfterReturningExamples.aj" options="-1.5">
<message kind="warning" line="20" text="unchecked match of List<Double> with List<? extends Number>"/>
</compile>
<run class="AfterReturningExamples">
<stdout>
<line text="execution(List C.foo(List))"/>
<line text="raw s1"/>
<line text="raw s2"/>
<line text="execution(List C.bar(List))"/>
<line text="raw 5.0"/>
<line text="raw 10.0"/>
<line text="a1 5.0"/>
<line text="a1 10.0"/>
<line text="a2 5.0"/>
<line text="a2 10.0"/>
<line text="a3 5.0"/>
<line text="a3 10.0"/>
<line text="execution(List C.goo(List))"/>
<line text="raw 5.0"/>
<line text="raw 10.0"/>
<line text="a1 5.0"/>
<line text="a1 10.0"/>
<line text="a3 5.0"/>
<line text="a3 10.0"/>
</stdout>
</run>
</ajc-test>
<ajc-test title="ajdk notebook: args and wildcards examples" dir="java5/generics/ajdk">
<compile files="WildcardArgsExamples.aj" options="-1.5">
<message kind="warning" line="6" text="unchecked match of List<? extends Number> with List"/>
</compile>
<run class="WildcardArgsExamples">
<stdout>
<line text="advice match at call(void C.foo(Object))"/>
<line text="advice match at call(void C.foo(Object))"/>
<line text="advice match 2 at call(void C.goo1(List))"/>
<line text="advice match 2 at call(void C.goo2(List))"/>
<line text="advice match 2 at call(void C.goo4(List))"/>
</stdout>
</run>
</ajc-test>
<ajc-test title="ajdk notebook: pointcut in generic class example" dir="java5/generics/ajdk">
<compile files="PointcutInGenericClassExample.aj" options="-1.5">
<message kind="warning" line="23" text="parameterized with C"/>
<message kind="warning" line="29" text="parameterized with D"/>
</compile>
</ajc-test>
<!-- ============================================================== -->
<!-- End of generics tests -->
<!-- ============================================================== -->
<ajc-test dir="bugs150/pr98901" title="public method with declare @method">
<compile files="Case01.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B01">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150" title="Compiler error due to a wrong exception check in try blocks">
<compile files="pr82989.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public method on the aspect that declares @method on it">
<compile files="Case02.aj" options="-1.5 -Xlint:error"/>
<run class="B02">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public annotated method">
<compile files="Case03.aj" options="-1.5 -Xlint:error"/>
<run class="B03">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public ITD method with declare @method">
<compile files="Case04.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B04">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public annotated ITD method">
<compile files="Case05.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B05">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public ITD-on-itself method with declare @method">
<compile files="Case06.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B06">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public annotated ITD-on-itself method">
<compile files="Case07.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B07">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public method on an Interface with declare @method">
<compile files="Case08.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B08">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public annotated method on an Interface">
<compile files="Case09.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B09">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public ITD method onto an Interface with declare @method">
<compile files="Case10.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B10">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public annotated ITD method onto an Interface">
<compile files="Case11.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B11">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public abstract method with declare @method">
<compile files="Case12.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B12">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public abstract method on the aspect that declares @method on it">
<compile files="Case13.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B13">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public abstract annotated method">
<compile files="Case14.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B14">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public abstract ITD method with declare @method">
<compile files="Case15.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B15">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public abstract annotated ITD method">
<compile files="Case16.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B16">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public abstract ITD-on-itself method with declare @method">
<compile files="Case17.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B17">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public abstract annotated ITD-on-itself method">
<compile files="Case18.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B18">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public abstract method on an Interface with declare @method">
<compile files="Case19.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B19">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public abstract annotated method on an Interface">
<compile files="Case20.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B20">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public abstract ITD method onto an Interface with declare @method">
<compile files="Case21.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B21">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public abstract annotated ITD method onto an Interface">
<compile files="Case22.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B22">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public field with declare @field">
<compile files="Case23.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B23">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public field on the aspect that declares @field on it">
<compile files="Case24.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B24">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public annotated field">
<compile files="Case25.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B25">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public ITD field with declare @field">
<compile files="Case26.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B26">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public annotated ITD field">
<compile files="Case27.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B27">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public ITD-on-itself field with declare @field">
<compile files="Case28.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B28">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr98901" title="public annotated ITD-on-itself field">
<compile files="Case29.aj" options="-1.5 -Xlint:error -Xdev:NoAtAspectJProcessing"/>
<run class="B29">
<stdout>
<line text="@anInterface()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150" title="Unable to build shadows">
<compile files="pr109728.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150/pr110788" title="bad generic decp - 1">
<compile files="Case1.java" options="-1.5">
<message kind="error" line="10" text="Cannot declare parent B<java.lang.Number> onto type C since it already has A<java.lang.String> in its hierarchy"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr110788" title="bad generic decp - 2">
<compile files="Case2.java" options="-1.5">
<message kind="error" line="8" text="Cannot declare parent A<java.lang.Number> onto type C since it already has A<java.lang.String> in its hierarchy"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr110788" title="bad generic decp - 3">
<compile files="Case3.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150/pr110788" title="bad generic decp - 4">
<compile files="Case4.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150/pr110927" title="cant create signature attribute">
<compile files="Case1.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150/pr72834" title="broken dispatch">
<compile files="Trouble.java">
<message kind="error" line="7" text="package visible abstract inter-type declarations are not allowed"/>
<message kind="error" line="9" text="The method getName() is undefined for the type A"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr73856" title="missing accessor">
<compile files="MissingAccessor.java"/>
<run class="MissingAccessor"/>
</ajc-test>
<ajc-test dir="bugs150/pr90143" title="cant call super methods">
<compile files="A.aj"/>
</ajc-test>
<ajc-test dir="bugs150" title="cunning declare parents">
<compile files="pr92311.aj"/>
</ajc-test>
<ajc-test dir="bugs150" title="ITD varargs problem">
<compile files="pr110906.aj" options="-1.5"/>
<run class="pr110906">
<stdout>
<line text="a"/>
<line text="a"/>
<line text="a"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150" title="generic itds and abstract method error">
<compile files="pr102357.aj"/>
<run class="pr102357"/>
</ajc-test>
<ajc-test dir="bugs150" title="unexpected error unboundFormalInPC">
<compile files="pr112027.aj"/>
</ajc-test>
<ajc-test dir="bugs150" title="ITD varargs in constructor">
<compile files="pr111481.aj" options="-1.5"/>
<run class="pr111481">
<stdout>
<line text="a"/>
<line text="a"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs150/pr112602" title="ClassCastException with generic wildcard">
<compile files="GenericInterface.java,Implementation.java" options="-1.5,-emacssym"/>
</ajc-test>
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 1">
<compile files="Case1.java" options="-1.5">
<message kind="warning" line="27" text="no match for this type name: Branch [Xlint:invalidAbsoluteTypeName]"/>
<message kind="error" line="26" text="can't bind type name 'Branch'"/>
<message kind="error" line="27" text="can't bind type name 'Revision'"/>
<message kind="error" line="33" text="List cannot be resolved to a type"/>
<message kind="error" line="38" text="List cannot be resolved to a type"/>
<message kind="error" line="39" text="List cannot be resolved to a type"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 2">
<compile files="Case2.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 3">
<compile files="Case3.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 4">
<compile files="Case4.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 5">
<compile files="Case5.java" options="-1.5">
<!-- might possibly need more diagnostics in this case to explain what has happened -->
<message kind="error" line="10" text="can't override java.util.List<java.lang.String> I.foo() with java.util.List<java.lang.Integer> A.foo() return types don't match"/>
<message kind="error" line="15" text="can't override java.util.List<java.lang.String> I.foo() with java.util.List<java.lang.Integer> A.foo() return types don't match"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 6">
<compile files="Case6.java" options="-1.5">
<message kind="error" line="8" text="N cannot be resolved to a type"/>
<!--message kind="error" line="7" text="T cannot be resolved to a type"/-->
</compile>
</ajc-test>
<ajc-test dir="bugs150/pr110307" title="Cant provide default implementation via ITD - 7">
<compile files="Case7.java" options="-1.5"/>
<run class="Case7">
<stderr>
<line text="in=hello out=hello"/>
<line text="in=35 out=35"/>
<line text="in=[] out=[]"/>
</stderr>
</run>
</ajc-test>
<!-- generic ITDs -->
<ajc-test dir="java5/generics/itds/design" title="generic itds - design A">
<compile files="DesignA.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/design" title="generic itds - design B">
<compile files="DesignB.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/design" title="generic itds - design C">
<compile files="DesignC.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/design" title="generic itds - design D">
<compile files="DesignD.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/design" title="generic itds - design E">
<compile files="DesignE.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/design" title="generic itds - design F">
<compile files="DesignF.java" options="-1.5"/>
</ajc-test>
<ajc-test dir="java5/generics/itds/design" title="generic itds - design G">
<compile files="DesignG.java" options="-1.5"/>
</ajc-test>
</suite>
|