blob: 1fb931e977b7b819753e06af6c5f3fbac0d444ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
<suite>
<ajc-test dir="features190/efficientTJP" title="tjp 1">
<compile files="One.java" options="-1.8"/>
<run class="One">
<stdout>
<line text="void One.main(String[])"/>
<line text="One running"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tjp 2">
<compile files="Two.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="Two">
<stdout>
<line text="void Two.main(String[])"/>
<line text="Two running"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tjp 3">
<compile files="Three.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="Three">
<stdout>
<line text="Three running"/>
<line text="Three()"/>
<line text="Three(String)"/>
<line text="Three(int, String)"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tjp 3a">
<compile files="ThreeA.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="ThreeA">
<stdout>
<line text="ThreeA running"/>
<line text="ThreeA()"/>
<line text="ThreeA(String)"/>
<line text="ThreeA(int, String)"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tjp 4">
<compile files="Four.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="Four">
<stdout>
<line text="run() running"/>
<line text="catch(Throwable)"/>
<line text="caught something"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tjp 4a">
<compile files="FourA.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="FourA">
<stdout>
<line text="run() running"/>
<line text="void FourA.run()"/>
<line text="caught something"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tjp get fields">
<compile files="Fields.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="Fields">
<stdout>
<line text="int Fields.a"/>
<line text="String Fields.s"/>
<line text="double Fields.d"/>
<line text="Fields.Inner Fields.obj"/>
<line text="short Fields.ps"/>
<line text="float Fields.fs"/>
<line text="long Fields.ls"/>
<line text="byte Fields.bs"/>
<line text="char Fields.cs"/>
<line text="int Fields.as"/>
<line text="String Fields.ss"/>
<line text="double Fields.ds"/>
<line text="Fields.Inner Fields.objs"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tjp get fieldsE">
<compile files="FieldsE.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="FieldsE">
<stdout>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
<line text="void FieldsE.main(String[])"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tjp set fields">
<compile files="Fields2.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="Fields2">
<stdout>
<line text="int Fields2.a"/>
<line text="short Fields2.ps"/>
<line text="double Fields2.d"/>
<line text="Fields2.Inner Fields2.obj"/>
<line text="String Fields2.s"/>
<line text="float Fields2.fs"/>
<line text="long Fields2.ls"/>
<line text="byte Fields2.bs"/>
<line text="char Fields2.cs"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tjp clinit">
<compile files="Clinit.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="Clinit">
<stdout>
<line text="Clinit.<clinit>"/>
<line text="Clinit.Inner.<clinit>"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tejp clinit">
<compile files="ClinitE.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="ClinitE">
<stdout>
<line text="ClinitE.<clinit>"/>
<line text="ClinitE.Inner.<clinit>"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tjp advice">
<compile files="Advice.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="Advice">
<stdout>
<line text="tjp:void X.before()"/>
<line text="tejp:void X.before()"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features190/efficientTJP" title="tjp init">
<compile files="Init.java" options="-Xajruntimetarget:1.9 -1.8"/>
<run class="Init">
<stdout>
<line text="A()"/>
<line text="A()"/>
<line text="B()"/>
<line text="B()"/>
</stdout>
</run>
</ajc-test>
</suite>
|