blob: 60d4a367ce305a411b1b7cad96142f87a94d7ebc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
|
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
<!-- ../ path when running, ../../ when editing? -->
<!-- Notes
- test titles should be prefixed with the corresponding
sample anchor/label, and suffixed to be unique.
- take care to keep error line numbers in sync with sources
TODO
- verify that RunTime and RuntimeWrites throw Errors
- harness bug: errStreamIsError not false when not forked; fork?
- check output/error stream against expected
-->
<suite>
<ajc-test dir="common" title="declares-* default declares">
<compile
argfiles="company.lst"
files="declares/Declares.java">
<message
kind="error"
file="Main.java"
line="15"
text="Factory"/>
<message
kind="warning"
file="Main.java"
line="30"
text="throw"/>
<message
kind="warning"
file="Main.java"
line="31"
text="handles"/>
</compile>
</ajc-test>
<ajc-test dir="common"
title="ensure company compiles and runs without aspects">
<compile argfiles="company.lst"/>
<run class="com.company.app.Main"/>
</ajc-test>
<ajc-test dir="common" title="language-initialization">
<compile files="language/Initialization.java"/>
<run class="language.Initialization"
errStreamIsError="true"/>
</ajc-test>
<ajc-test dir="common" title="language-*Context">
<compile files="language/Context.java"/>
<run class="language.Context" />
</ajc-test>
<ajc-test dir="common" title="language-cflowRecursionBasic">
<compile files="language/ControlFlow.java"/>
<run class="language.ControlFlow"/>
</ajc-test>
<ajc-test dir="common" title="language-doubleDispatch">
<compile files="language/DoubleDispatch.java"/>
<run class="language.DoubleDispatch"/>
</ajc-test>
<ajc-test dir="common" title="tracing-simpleLogging">
<compile
argfiles="company.lst"
files="tracing/Logging.java"/>
<run class="com.company.app.Main"/>
</ajc-test>
<ajc-test dir="common" title="tracing-traceJoinPoints">
<compile
argfiles="company.lst"
files="tracing/TraceJoinPoints.java,
tracing/TraceJoinPointsBase.java,
tracing/TraceMyJoinPoints.java"/>
<run class="com.company.app.Main"/>
</ajc-test>
<ajc-test dir="inoculated/src" title="declares-inoculated-*">
<compile files="com/xerox/printing/CompileTime.java">
<message line="20" kind="warning"/>
<message line="24" kind="warning"/>
<message line="33" kind="error"/>
<message line="39" kind="error"/>
</compile>
</ajc-test>
<ajc-test dir="inoculated/src" title="testing-inoculated-roundTrip">
<compile files="com/xerox/printing/RoundTrip.java"/>
<run class="com.xerox.printing.RoundTrip"/>
</ajc-test>
<ajc-test dir="inoculated/src" title="testing-inoculated-roundTrip">
<compile files="BufferTest.java"/>
<run class="BufferTest"/>
</ajc-test>
<ajc-test dir="inoculated/src" title="testing-inoculated-roundTrip">
<compile files="BufferTest.java"/>
<run class="BufferTest"/>
</ajc-test>
<ajc-test dir="inoculated/src" title="testing-inoculated-injectIOException">
<compile files="Injection.java"/>
<run class="Injection"/>
</ajc-test>
<ajc-test dir="inoculated/src" title="testing-inoculated-injectIOException">
<compile files="MainFailure.java"/>
<run class="MainFailure"/>
</ajc-test>
<ajc-test dir="inoculated/src" title="testing-inoculated-runtimeFactories">
<compile files="RunTime.java"/>
</ajc-test>
<ajc-test dir="inoculated/src" title="testing-inoculated-runtimeWrites">
<compile files="RuntimeWrites.java"/>
</ajc-test>
<ajc-test dir="inoculated/src" title="testing-inoculated-{proxies}">
<compile files="StubReplace.java"/>
<run class="StubReplace"/>
</ajc-test>
<ajc-test dir="." title="library-pointcutIdioms compile check">
<compile files="common/org/aspectj/langlib/Pointcuts.java"/>
</ajc-test>
<!--
<ajc-test dir="." title="library-pointcutIdioms test all pointcuts"
comment="disabled pending fix for BCException"
>
<compile files="common/org/aspectj/langlib/Pointcuts.java,
testsrc/org/aspectj/langlib/PointcutsCW.java">
<message kind="warning" line="67" text="anyMethodExecution"/>
<message kind="warning" line="67" text="anyPublicMethodExecution"/>
<message kind="warning" line="67" text="anyNonPrivateMethodExecution"/>
<message kind="warning" line="72" text="anyConstructorExecution"/>
<message kind="warning" line="74" text="anyConstructorExecution"/>
<message kind="warning" line="74" text="anyPublicConstructorExecution"/>
<message kind="warning" line="74" text="anyNonPrivateConstructorExecution"/>
<message kind="warning" line="76" text="anyConstructorExecution"/>
<message kind="warning" line="76" text="anyNonPrivateConstructorExecution"/>
<message kind="warning" line="78" text="anyNonPrivateFieldSet"/>
<message kind="warning" line="82" text="anyMethodExecution"/>
<message kind="warning" line="82" text="anyPublicMethodExecution"/>
<message kind="warning" line="82" text="anyNonPrivateMethodExecution"/>
<message kind="warning" line="83" text="toStringExecution "/>
<message kind="warning" line="87" text="anyMethodExecution"/>
<message kind="warning" line="89" text="anyMethodExecution, "/>
<message kind="warning" line="91" text="anyNonPrivateFieldSet"/>
<message kind="warning" line="91" text="withinSetter"/>
<message kind="warning" line="97" text="anyNonPrivateFieldGet"/>
<message kind="warning" line="97" text="withinGetter"/>
<message kind="warning" line="102" text="anyMethodExecution"/>
<message kind="warning" line="102" text="anyPublicMethodExecution"/>
<message kind="warning" line="102" text="anyNonPrivateMethodExecution"/>
<message kind="warning" line="103" text="runImplementationsInNonRunnable"/>
<message kind="warning" line="107" text="anyRunnableImplementation"/>
<message kind="warning" line="109" text="anyMethodExecution"/>
<message kind="warning" line="109" text="anyPublicMethodExecution"/>
<message kind="warning" line="109" text="anyNonPrivateMethodExecution"/>
<message kind="warning" line="114" text="anyMethodExecution"/>
<message kind="warning" line="114" text="anyPublicMethodExecution"/>
<message kind="warning" line="114" text="anyNonPrivateMethodExecution"/>
<message kind="warning" line="115" text="cloneImplementationsInNonCloneable"/>
<message kind="warning" line="121" text="anyMethodExecution"/>
<message kind="warning" line="121" text="anyPublicMethodExecution"/>
<message kind="warning" line="121" text="anyNonPrivateMethodExecution"/>
<message kind="warning" line="124" text="anyPublicFieldGet"/>
<message kind="warning" line="124" text="anyNonPrivateFieldGet"/>
<message kind="warning" line="126" text="anyPublicFieldGet"/>
<message kind="warning" line="126" text="anyNonPrivateFieldGet"/>
<message kind="warning" line="132" text="anyNonPrivateFieldGet"/>
<message kind="warning" line="134" text="anyNonPrivateFieldGet"/>
<message kind="warning" line="136" text="anyPublicFieldSet"/>
<message kind="warning" line="136" text="anyNonPrivateFieldSet"/>
<message kind="warning" line="138" text="anyPublicFieldSet"/>
<message kind="warning" line="138" text="anyNonPrivateFieldSet"/>
<message kind="warning" line="141" text="anyNonPublicFieldSetOutsideConstructorOrSetter"/>
<message kind="warning" line="143" text="anyNonPublicFieldSetOutsideConstructorOrSetter"/>
<message kind="warning" line="145" text="anyNonPublicFieldSetOutsideConstructorOrSetter"/>
<message kind="warning" line="147" text="anyNonPublicFieldSetOutsideConstructorOrSetter"/>
<message kind="warning" line="145" text="anyNonPrivateFieldSet"/>
<message kind="warning" line="147" text="anyNonPrivateFieldSet"/>
<message kind="warning" line="149" text="anyGetSystemErrOut"/>
<message kind="warning" line="149" text="anyNonPrivateFieldGet"/>
<message kind="warning" line="149" text="anyPublicFieldGet"/>
<message kind="warning" line="151" text="anyGetSystemErrOut"/>
<message kind="warning" line="151" text="anyNonPrivateFieldGet"/>
<message kind="warning" line="151" text="anyPublicFieldGet"/>
<message kind="warning" line="153" text="anyThreadConstruction"/>
<message kind="warning" line="155" text="anyJavaIOCalls"/>
<message kind="warning" line="157" text="anyJavaIOCalls"/>
<message kind="warning" line="159" text="anyJavaAWTOrSwingCalls"/>
<message kind="warning" line="161" text="anyJavaAWTOrSwingCalls"/>
<message kind="warning" line="163" text="anyJavaAWTOrSwingCalls"/>
<message kind="warning" line="165" text="anyJavaAWTOrSwingCalls"/>
<message kind="warning" line="169" text="anySystemClassLoadingCalls"/>
<message kind="warning" line="171" text="anySystemReflectiveCalls"/>
<message kind="warning" line="173" text="anySystemProcessSpawningCalls"/>
<message kind="warning" line="177" text="mostThrowableReadCalls"/>
<message kind="warning" line="179" text="mostThrowableReadCalls"/>
<message kind="warning" line="181" text="mostThrowableReadCalls"/>
</compile>
<run class="org.aspectj.langlib.PointcutsCW"/>
</ajc-test>
-->
</suite>
|