aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/aspectj/systemtest/ajc1611/ajc1611.xml
blob: beb9229241f5e0b99eb853b8112f8cc97483eef0 (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="bugs1611/pr336880" title="bounds check confusion">
  	<compile files="First.java" options="-1.5"/>
  	<compile files="Second.java" aspectpath="." options="-1.5"/>
  </ajc-test>
  
  <ajc-test dir="bugs1611/pr336774" title="clashing itds">
  	<compile files="First.java" options="-1.5"/>
  	<compile files="Test.java" aspectpath="." options="-1.5"/>
  </ajc-test>
  
  <ajc-test dir="bugs1611/pr336745" title="incorrect signature">
  	<compile files="Foo.aj" options="-1.5"/>
  </ajc-test>
  
  <ajc-test dir="bugs1611/pr336471" title="esjp">
  	<compile files="Tester.aj" options="-1.5 -Xset:targetRuntime1_6_10=true"/>
  	<run class="Tester">
	  	<stdout>
		  	<line text="execution(void Tester.main(String[]))"/>
		  	<line text="execution(void Foo.run())"/>
		  	<line text="hello"/>
	  	</stdout>
  	</run>
  </ajc-test>
  
  <ajc-test dir="bugs1611/pr336136" title="itit">
    <compile files="Country_Roo_Op4j.java">
    <message kind="error" text="The import com.foo cannot be resolved" line="1"/>
    <message kind="error" text="The import org.javaruntype cannot be resolved" line="3"/>
    <message kind="error" text="The import org.op4j cannot be resolved" line="4"/>
    <message kind="error" text="The import org.op4j cannot be resolved" line="5"/>
    <message kind="error" text="Country cannot be resolved to a type" line="9"/>
    <message kind="error" text="Function cannot be resolved to a type" line="11"/>
    <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j$Keys"/>
    </compile>"
  </ajc-test>
  
  
  <ajc-test dir="bugs1611/pr336136" title="itit - 2">
    <compile files="Country_Roo_Op4j2.java" options="-1.5">
    <message kind="error" text="The import com.foo cannot be resolved" line="1"/>
    <message kind="error" text="The import org.javaruntype cannot be resolved" line="3"/>
    <message kind="error" text="The import org.op4j cannot be resolved" line="4"/>
    <message kind="error" text="The import org.op4j cannot be resolved" line="5"/>
    <message kind="error" text="Country cannot be resolved to a type" line="9"/>
    <message kind="error" text="Country cannot be resolved to a type" line="11"/>
    <message kind="error" text="Function cannot be resolved to a type" line="11"/>
    <message kind="error" text="Get cannot be resolved" line="11"/>
    <message kind="error" text="Types cannot be resolved" line="11"/>
    <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j2$Keys"/>
    </compile>"
  </ajc-test>
  

  <ajc-test dir="bugs1611/pr335682" title="pr335682">
    <compile inpath="foo.jar" options="-1.4" outjar="bar.jar"/>
  </ajc-test>

  <ajc-test dir="bugs1611/pr335682" title="pr335682 - 2">
    <compile inpath="case2.jar" options="-1.4" outjar="bar.jar"/>
  </ajc-test>
  
  <ajc-test dir="bugs1611/pr335682" title="pr335682 - 3">
    <compile inpath="case3.jar" options="-1.4" outjar="bar.jar"/>
  </ajc-test>  
  
  <ajc-test dir="bugs1611/pr335682" title="pr335682 - 5">
    <compile inpath="case5.jar" options="-1.4" outjar="bar.jar"/>
  </ajc-test>  

  <ajc-test dir="bugs1611/pr335783" title="pr335783">
    <compile files="A.java" options="-1.5"/>
    <compile files="X.aj" options="-1.5 -Xlint:ignore" />
    <run class="A" ltw="aop.xml">
    <stdout>
	    <line text="OK"/>
    </stdout>
    </run>
  </ajc-test>
  
  <ajc-test dir="bugs1611/pr333274" title="anno style advice chain">
  <compile files="ma/Annotation1.java  ma/aspect1/Aspect1.java  ma/aspect3/Aspect3.java ma/Main.java ma/Precedence.java" options="-1.5"/>
  <run class="ma.Main">
  <stdout>
  <line text="&gt;In Aspect1"/>
  <line text="&gt;In Aspect3"/>
  <line text="Method call"/>
  <line text="&lt;In Aspect3"/>
  <line text="=In Aspect1"/>
  <line text="&gt;In Aspect3"/>
  <line text="Method call"/>
  <line text="&lt;In Aspect3"/>
  <line text="&lt;In Aspect1"/>
  </stdout>
  </run>
  </ajc-test>
  
  <ajc-test dir="bugs1611/pr333274" title="code style advice chain - no inline">
  <compile files="ma2/Annotation1.java  ma2/aspect1/Aspect1.java  ma2/aspect3/Aspect3.java ma2/Main.java ma2/Precedence.java" options="-1.5 -XnoInline"/>
  <run class="ma2.Main">
  <stdout>
  <line text="&gt;In Aspect1"/>
  <line text="&gt;In Aspect3"/>
  <line text="Method call"/>
  <line text="&lt;In Aspect3"/>
  <line text="=In Aspect1"/>
  <line text="&gt;In Aspect3"/>
  <line text="Method call"/>
  <line text="&lt;In Aspect3"/>
  <line text="&lt;In Aspect1"/>
  </stdout>
  </run>
  </ajc-test>
  
  <ajc-test dir="bugs1611/pr333274" title="code style advice chain">
  <compile files="ma2/Annotation1.java  ma2/aspect1/Aspect1.java  ma2/aspect3/Aspect3.java ma2/Main.java ma2/Precedence.java" options="-1.5 "/>
  <run class="ma2.Main">
  <stdout>
  <line text="&gt;In Aspect1"/>
  <line text="&gt;In Aspect3"/>
  <line text="Method call"/>
  <line text="&lt;In Aspect3"/>
  <line text="=In Aspect1"/>
  <line text="&gt;In Aspect3"/>
  <line text="Method call"/>
  <line text="&lt;In Aspect3"/>
  <line text="&lt;In Aspect1"/>
  </stdout>
  </run>
  </ajc-test>

  <ajc-test dir="bugs1611/pr328840" title="pr328840">
    <compile files="Wibble.aj" options="-1.5 -showWeaveInfo">
    <message kind="weave" text="Join point 'field-get(XX Song.i)' in Type 'Song' (Wibble.aj:26) advised by before advice from 'Wibble' (Wibble.aj:9)"/>
    <message kind="weave" text="'XX i' of type 'Song' (Wibble.aj) is annotated with @Foo field annotation from 'Wibble' (Wibble.aj:7)"/>
    </compile>
    <run class="Wibble">
    <stdout>
    <line text="@Foo()"/>
    </stdout></run>
  </ajc-test>
  
  <ajc-test dir="bugs1611/pr332388" title="pr332388">
     <compile files="M.java" outjar="M.jar" options="-1.5"/>
     <compile files="A.java B.java" classpath="M.jar" outjar="AB.jar" options="-1.5"/>
     <compile files="MyAspect.java" outjar="aspects.jar" options="-1.5"/>
     <compile files="" aspectpath="aspects.jar" inpath="AB.jar" options="-1.5">
     <message kind="error" text="Unable to find type for generic bound.  Missing type is M [Xlint:cantFindType]"/>
     </compile>
  </ajc-test>
  
  <ajc-test dir="bugs1611/pr333469" title="pr333469">
     <compile files="MyList.java MyList_Serializable.java" options="-1.5"/>
     <run class="MyList">
     <stdout><line text="ser=1"/></stdout>
     </run>
  </ajc-test>
  
  <ajc-test dir="bugs1611/pr332388_2" title="pr332388 - 2">
     <compile files="M.java" outjar="M.jar" options="-1.5"/>
     <compile files="A.java" classpath="M.jar" outjar="A.jar" options="-1.5"/>
     <compile files="MyAspect.java" outjar="aspects.jar" options="-1.5"/>
     <compile files="" aspectpath="aspects.jar" inpath="A.jar" options="-1.5">
     <message kind="error" text="Unable to find type (for bound): M [Xlint:cantFindType]"/>
     </compile>
  </ajc-test>
  
</suite>