aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ajcTestsFailing.xml
blob: 4609f86b94bfdbbc7ae238ff7893128e13b34335 (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
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">

<!-- contains valid tests that the compiler has never passed -->
<suite>

	<!-- either of these tests fail for me when run first -->

   <ajc-test dir="incremental/defaultPackage"
    keywords="incremental-test"
   	title="change sources in default package">
        <compile 
        	staging="true"
        	options="-incremental" 
        	sourceroots="src"/>
        <run class="Main"/>
        <inc-compile tag="20"/>
        <run class="Main"/>
    </ajc-test>

   <ajc-test dir="incremental/interPackage"
    keywords="incremental-test"
   	title="change source">
        <compile 
        	staging="true"
        	options="-incremental" 
        	sourceroots="src"/>
        <run class="app.Main"/>
        <inc-compile tag="20"/>
        <run class="app.Main"/>
    </ajc-test>

	<!-- expected messages the same for these tests. note:
	     - that pointcut-and not supported in message text TODO 
	     - no test on adviceexecution()
	     - only verifying by line number now
	       (not flagging error in filename.  Binary filenames are 
	        listed as, e.g., app.Main.class.  
	        Should get from filename attribute)
	  -->

    <ajc-test dir="new/binaryWarnings/src" pr="37020"
   	 title="declare warnings on main">
        <compile files="aspects/MainWarnings.java,app/Main.java">
        	<message kind="warning" file="app/Main.java"
        	  line="6" text="set(String Main.staticString)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="8" text="set(String Main.s)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="12" text="get(String Main.staticString)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="14" text="set(String Main.staticString)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="16" text="call(Main.new())"/>
        	<message kind="warning" file="app/Main.java"
        	  line="19" text="call(void Main.go(String))"/>
        	<message kind="warning" file="app/Main.java"
        	  line="23" text="execution(Main.new())"/>
        	<message kind="warning" file="app/Main.java"
        	  line="26" text="execution(void Main.go(String))"/>
        	<message kind="warning" file="app/Main.java"
        	  line="29" text="get(String Main.s)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="31" text="set(String Main.s)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="33" text="handler(RuntimeException)"/>        	  
        	<message kind="warning" file="app/Main.java"
        	  line="35" text="withincode(void Main.go(String))"/>
        	<message kind="warning" file="app/Main.java"
        	  line="42" text="withincode(void Main.stop())"/>
        	<message kind="warning" file="app/Main.java"
        	  line="50" text="preinitialization(app.C.new())"/>
        </compile>
        
        <run class="app.Main"/>
    </ajc-test>

    <ajc-test dir="new/binaryWarnings/src"  pr="37020"
   	title="declare warnings on binary javac 1.4 classes">
        <compile files="aspects/MainWarnings.java,../injars/app-javac-1.4.jar">
        	<message kind="warning" file="app/Main.java"
        	  line="6" text="set(String Main.staticString)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="8" text="set(String Main.s)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="12" text="get(String Main.staticString)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="14" text="set(String Main.staticString)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="16" text="call(Main.new())"/>
        	<message kind="warning" file="app/Main.java"
        	  line="19" text="call(void Main.go(String))"/>
        	<message kind="warning" file="app/Main.java"
        	  line="23" text="execution(Main.new())"/>
        	<message kind="warning" file="app/Main.java"
        	  line="26" text="execution(void Main.go(String))"/>
        	<message kind="warning" file="app/Main.java"
        	  line="29" text="get(String Main.s)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="31" text="set(String Main.s)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="33" text="handler(RuntimeException)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="35" text="withincode(void Main.go(String))"/>
        	<message kind="warning" file="app/Main.java"
        	  line="42" text="withincode(void Main.stop())"/>
        	<message kind="warning" file="app/Main.java"
        	  line="50" text="preinitialization(app.C.new())"/>
        </compile>
        <run class="app.Main"/>
    </ajc-test>
   <ajc-test dir="new/binaryWarnings/src" pr="37023"
   	title="declare warnings on binary ajc 1.1 classes">
        <compile files="aspects/MainWarnings.java,../injars/app-ajc-1.1.jar">
        	<message kind="warning" file="app/Main.java"
        	  line="6" text="set(String Main.staticString)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="8" text="set(String Main.s)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="12" text="get(String Main.staticString)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="14" text="set(String Main.staticString)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="16" text="call(Main.new())"/>
        	<message kind="warning" file="app/Main.java"
        	  line="19" text="call(void Main.go(String))"/>
        	<message kind="warning" file="app/Main.java"
        	  line="23" text="execution(Main.new())"/>
        	<message kind="warning" file="app/Main.java"
        	  line="26" text="execution(void Main.go(String))"/>
        	<message kind="warning" file="app/Main.java"
        	  line="29" text="get(String Main.s)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="31" text="set(String Main.s)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="33" text="handler(RuntimeException)"/>
        	<message kind="warning" file="app/Main.java"
        	  line="35" text="withincode(void Main.go(String))"/>
        	<message kind="warning" file="app/Main.java"
        	  line="42" text="withincode(void Main.stop())"/>
        	<message kind="warning" file="app/Main.java"
        	  line="50" text="preinitialization(app.C.new())"/>
        	  
        </compile>
        <run class="app.Main"/>
    </ajc-test>

   <ajc-test dir="new/binaryWarnings/src" pr="37020"
   	keywords="knownLimitation"
   	title="declare error on handler/method execution with no code on binary ajc 1.1 classes">
        <compile files="aspects/MainExecStartLinesErrors.java,../injars/appStartLines-ajc-1.1.jar">
        	<message kind="error" file="app/MainExecStartLines.java"
        	  line="6" text="execution(void MainExecStartLines.main(String[]))"/>
        	<message kind="error" file="app/MainExecStartLines.java"
        	  line="17" text="handler(RuntimeException)"/>        	  
        </compile>
    </ajc-test>

   <ajc-test dir="new/binaryWarnings/src" pr="37020"
   	keywords="knownLimitation"
   	title="declare error on handler/method execution with no code on binary javac 1.4 classes">
        <compile files="aspects/MainExecStartLinesErrors.java,../injars/appStartLines-javac-1.4.jar">
        	<message kind="error" file="app/MainExecStartLines.java"
        	  line="6" text="execution(void MainExecStartLines.main(String[]))"/>
        	<message kind="error" file="app/MainExecStartLines.java"
        	  line="17" text="handler(RuntimeException)"/>        	  
        </compile>
    </ajc-test>

</suite>