aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/resources/org/aspectj/systemtest/serialVerUID/serialVerUID.xml
blob: f879eb6bd552b8884f27278fbcc26f8e30e9bfe2 (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
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
<!-- SUID Tests -->
<suite>

    <ajc-test dir="bugs/serialVersionUID"
		title="SUID: Before execution advice" pr="41181">
		<compile files="Test.java, Util.java"/>
        <run class="Test"/>
		<compile files="Test.java, Util.java, BeforeExecutionAdvice.aj" options="-Xlint:warning"/>
        <run class="Util"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: Around execution advice" comment="OK because around_body private" pr="41181">
		<compile files="Test.java, Util.java"/>
        <run class="Test"/>
		<compile files="Test.java, Util.java, AroundExecutionAdvice.aj" options="-Xlint:warning"/>
        <run class="Util"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID" 
	    title="SUID: Around closure execution advice (-Xlint:ignore)" comment="OK because ignoring warnings"
		pr="41181">
		<compile files="Test.java, Util.java"/>
        <run class="Test"/>
		<compile files="Test.java, Util.java, AroundClosureExecutionAdvice.aj" options="-Xlint:ignore"/>
        <run class="Util" options="-fail"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: Around closure execution advice" comment="Warning because around_body non-private"
		pr="41181">
		<compile files="Test.java, Util.java"/>
        <run class="Test"/>
		<compile files="Test.java, Util.java, AroundClosureExecutionAdvice.aj"
		  xlintfile="Xlint.properties">
            <message kind="warning" line="9"/>
		</compile>
        <run class="Util" options="-fail"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: thisJoinPoint" comment="Warning because of introduced clinit"	pr="41181">
		<compile files="Test.java, Util.java"/>
        <run class="Test"/>
		<compile
			files="Test.java, Util.java, TJP.aj" options="-Xlint:warning">
            <message kind="warning" line="6"/>
            <message kind="warning" line="13"/>
            <message kind="warning" line="17"/>
            <message kind="warning" line="24"/>
            <message kind="warning" line="31"/>
		</compile>
        <run class="Util" options="-fail"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: thisJoinPoint with clinit method" comment="OK if tjp private and existing clinit"
		pr="41181">
		<compile files="ClinitTest.java, Util.java"/>
        <run class="ClinitTest"/>
		<compile files="ClinitTest.java, Util.java, TJP.aj" options="-Xlint:warning -1.8">
		  <message kind="warning" line="24" text="can not build"/>
		  <message kind="warning" line="31" text="can not build"/>
		  <message kind="warning" line="13" text="advice defined in TJP has not been applied [Xlint:adviceDidNotMatch]"/>
		  <message kind="warning" line="17" text="advice defined in TJP has not been applied [Xlint:adviceDidNotMatch]"/>
		  <message kind="warning" line="24" text="advice defined in TJP has not been applied [Xlint:adviceDidNotMatch]"/>
		  <message kind="warning" line="31" text="advice defined in TJP has not been applied [Xlint:adviceDidNotMatch]"/>
		</compile>
        <run class="Util" options="-read"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: After returning staticinitialization advice" comment="Warning because of added clinit"
		pr="41181">
		<compile files="Test.java, Util.java"/>
        <run class="Test"/>
		<compile
		  files="Test.java, Util.java, AfterReturningStaticinitializationAdvice.aj" options="-Xlint:warning">
            <message kind="warning" line="6"/>
		</compile>
        <run class="Util" options="-fail"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: After returning staticinitialization advice with serialVersionUID field"
		comment="OK because of serialVersionUID field" pr="41181">
		<compile files="SuidTest.java, Util.java" />
        <run class="SuidTest"/>
		<compile files="SuidTest.java, Util.java, AfterReturningStaticinitializationAdvice.aj" options="-Xlint:warning"/>
        <run class="Util"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: ITD field" comment="Error because added field may not be initialized" pr="41181">
		<compile files="Test.java, Util.java"/>
        <run class="Test"/>
		<compile files="Test.java, Util.java, ITDField.aj" options="-Xlint:error">
			<message kind="error" line="1"/> <!-- two messages about new getter/setter affecting suid for private itd field -->
            <message kind="error" line="3"/>
		</compile>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: ITD method" comment="Warning because of added method" pr="41181">
		<compile files="Test.java, Util.java" />
        <run class="Test"/>
		<compile files="Test.java, Util.java, ITDMethod.aj" options="-Xlint:warning">
            <message kind="warning" line="3"/>
		</compile>
        <run class="Util" options="-fail"/>
	</ajc-test>
    
	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: Declare extends" comment="OK" pr="41181">
		<compile files="Test.java, Util.java" />
        <run class="Test"/>
		<compile files="Test.java, Util.java, DeclareExtends.aj" options="-Xlint:warning"/>
        <run class="Util"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: Declare implements (compile)" comment="Warning because of added interface" pr="41181">
		<compile files="Test.java, Util.java" />
        <run class="Test"/>
		<compile files="Test.java, Util.java, DeclareImplements.aj" options="-Xlint:warning">
            <message kind="warning" line="3"/>
		</compile>
        <run class="Util" options="-fail"/>
	</ajc-test>
 
 	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: Declare implements non-Serializable (compile)" comment="OK because not Serializable"
		pr="41181">
		<compile files="NonSerializableTest.java, DeclareImplements.aj" options="-Xlint:warning"/>
	</ajc-test>
 
 	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: Declare implements Serializable (compile)" comment="OK because adding Serializable"
		pr="41181">
		<compile files="NonSerializableTest.java, DeclareImplementsSerializable.aj" options="-Xlint:warning"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: Declare implements (weave)" comment="Warning because of added interface" pr="41181">
		<compile files="Test.java, Util.java" />
        <run class="Test"/>
		<compile files="injar.jar, DeclareImplements.aj" options="-Xlint:warning">
            <message kind="warning" line="3"/>
		</compile>
        <run class="Util" options="-fail"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID" title="SUID: Priviliged aspect" pr="41181">
		<compile files="Test.java, Util.java"/>
        <run class="Test"/>
		<compile files="Test.java, Util.java, PrivilegedAspect.aj" options="-Xlint:warning">
            <message kind="warning" line="0"/>
		</compile>
        <run class="Util" options="-fail"/>
	</ajc-test>

	<ajc-test dir="bugs/serialVersionUID"
		title="SUID: Perthis aspect"
		comment="Warning because added of added interface MightHaveAspect. Added field is private transient"
		pr="41181">
		<compile files="Test.java, Util.java" />
        <run class="Test"/>
		<compile files="Test.java, Util.java, PerThisAspect.aj" options="-Xlint:warning">
            <message kind="warning" line="0"/>
		</compile>
        <run class="Util" options="-fail"/>
	</ajc-test>
    



</suite>