You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ajcTestsAttic.xml 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
  2. <suite>
  3. <ajc-test dir="tom"
  4. title="The classes which implement the conflict sets pattern from CPJ(2e). There should be no errors."
  5. keywords="from-tomtests">
  6. <compile files="Assertions.java,conflict_sets/*.java"/>
  7. <run class="Main"/>
  8. </ajc-test>
  9. <ajc-test dir="tom"
  10. title="The Classes which implement the Joint Actions protocols from CPJ(2e). There should be no errors."
  11. keywords="from-tomtests">
  12. <compile files="Assertions.java,joint_actions/*.java"/>
  13. <run class="Main"/>
  14. </ajc-test>
  15. <ajc-test dir="tom" title="Subject/Observer Pattern. no errors"
  16. keywords="from-tomtests">
  17. <compile files="Assertions.java,subject_observer/*.java"/>
  18. <run class="Main"/>
  19. </ajc-test>
  20. <ajc-test dir="tom" title="Method Confinement. no errors"
  21. keywords="from-tomtests">
  22. <compile files="Assertions.java,confinement/*.java"/>
  23. <run class="Main"/>
  24. </ajc-test>
  25. <ajc-test dir="tom" title="Double Check policy. no errors"
  26. keywords="from-tomtests">
  27. <compile files="Assertions.java,double_check/*.java"/>
  28. <run class="Main"/>
  29. </ajc-test>
  30. <ajc-test dir="tom" title="A Rollback strategy. no errors"
  31. keywords="from-tomtests">
  32. <compile files="Assertions.java,rollback/*.java"/>
  33. <run class="Main"/>
  34. </ajc-test>
  35. <ajc-test dir="tom" title="An impl of the Futures pattern. no errors"
  36. keywords="from-tomtests">
  37. <compile files="Assertions.java,futures/*.java"/>
  38. <run class="Main"/>
  39. </ajc-test>
  40. <ajc-test dir="tom" title="The Guards policy. no errors"
  41. keywords="from-tomtests">
  42. <compile files="Assertions.java,guards/*.java"/>
  43. <run class="Main"/>
  44. </ajc-test>
  45. <ajc-test dir="tom" title="Using State Variables. no errors"
  46. keywords="from-tomtests">
  47. <compile files="Assertions.java,state_variables/*.java"/>
  48. <run class="Main"/>
  49. </ajc-test>
  50. <ajc-test dir="tom" title="A guards example. no errors"
  51. keywords="from-tomtests">
  52. <compile files="Assertions.java,waiting_stack/*.java"/>
  53. <run class="Main"/>
  54. </ajc-test>
  55. <ajc-test dir="tom" title="Demonstrates resource sharing. no errors"
  56. keywords="from-tomtests">
  57. <compile files="Assertions.java,printer_example/*.java"/>
  58. <run class="Main"/>
  59. </ajc-test>
  60. <ajc-test dir="errors" title="Should fail because two aspects are public"
  61. keywords="from-opentests">
  62. <compile files="TwoPublics.java">
  63. <message kind="error" line="1"/>
  64. </compile>
  65. </ajc-test>
  66. <ajc-test dir="new" title="illegal forward reference using introduction"
  67. keywords="from-opentests">
  68. <compile files="IllegalForwardReference.java"/>
  69. <run class="IllegalForwardReference"/>
  70. </ajc-test>
  71. <ajc-test dir="new" pr="396"
  72. title="Not binding static inner interfaces. ( )" keywords="from-opentests">
  73. <compile files="StaticInnerInterfaces_PR386.java"/>
  74. <run class="StaticInnerInterfaces_PR386"/>
  75. </ajc-test>
  76. <ajc-test dir="new" pr="396"
  77. title="Not binding non-static inner interfaces. ( )"
  78. keywords="from-opentests">
  79. <compile files="NonStaticInnerInterfaces_PR386.java"/>
  80. <run class="NonStaticInnerInterfaces_PR386"/>
  81. </ajc-test>
  82. <ajc-test dir="errors" title="Ambiguous interface should produce error"
  83. keywords="from-opentests">
  84. <compile files="AmbiguousInterface.java">
  85. <message kind="error" line="13"/>
  86. </compile>
  87. </ajc-test>
  88. <ajc-test dir="errors"
  89. title="Parser shouldn't accept 'const' as a variable name."
  90. keywords="from-opentests">
  91. <compile files="Const.java">
  92. <message kind="error" line="9"/>
  93. <message kind="error" line="10"/>
  94. <message kind="error" line="15"/>
  95. <message kind="error" line="19"/>
  96. </compile>
  97. </ajc-test>
  98. <ajc-test dir="errors"
  99. title="Parser shouldn't accept 'goto' as a variable name."
  100. keywords="from-opentests">
  101. <compile files="Goto.java">
  102. <message kind="error" line="4"/>
  103. <message kind="error" line="9"/>
  104. <message kind="error" line="10"/>
  105. <message kind="error" line="14"/>
  106. </compile>
  107. </ajc-test>
  108. <ajc-test dir="errors"
  109. title="Over-boundary base values cause compile-time errors"
  110. keywords="from-opentests">
  111. <compile files="BoundaryNums.java">
  112. <message kind="error" line="22"/>
  113. </compile>
  114. </ajc-test>
  115. <ajc-test dir="new"
  116. title="creates two a.java files when two classes have the same name in different cases (will not fail)"
  117. keywords="from-badtests">
  118. <compile files="LowerAndUpper.java"/>
  119. <run class="LowerAndUpper"/>
  120. </ajc-test>
  121. <ajc-test dir="new" pr="312"
  122. title="don't make each object when there's no this (should take this out)"
  123. keywords="from-badtests">
  124. <compile files="EachObjectNoThis.java"/>
  125. <run class="EachObjectNoThis"/>
  126. </ajc-test>
  127. <ajc-test dir="new" pr="652"
  128. title="declare parent accepting interface for extension"
  129. keywords="from-badtests">
  130. <compile files="DeclareParentsNonsenseCE.java">
  131. <message kind="error" line="4"/>
  132. <message kind="error" line="6"/>
  133. </compile>
  134. </ajc-test>
  135. <ajc-test dir="new" title="Using hasaspect. [eachobject] (still)"
  136. keywords="from-08tests">
  137. <compile files="HasAspect.java"/>
  138. <run class="HasAspect"/>
  139. </ajc-test>
  140. <ajc-test dir="new"
  141. title="(DESIGN QUESTION) aspects of eachobject and serialization (still)"
  142. keywords="from-08tests">
  143. <compile files="SerializedOf.java"/>
  144. <run class="SerializedOf"/>
  145. </ajc-test>
  146. <ajc-test dir="new"
  147. title="around advice interacting with checked exceptions, with callsto (still)"
  148. keywords="from-08tests">
  149. <compile files="AroundExceptions.java"/>
  150. <run class="AroundExceptions"/>
  151. </ajc-test>
  152. <ajc-test dir="pureJava"
  153. title="TriTestExprs interact with constant folding and name binding"
  154. keywords="from-knownbugs">
  155. <compile files="TriTestMethodLookup.java"/>
  156. <run class="TriTestMethodLookup"/>
  157. </ajc-test>
  158. <ajc-test dir="pureJava"
  159. title="Assignment to final fields w/initializers should _always_ be errors"
  160. keywords="from-knownbugs">
  161. <compile files="UnderIfFalse.java">
  162. <message kind="error" line="11"/>
  163. </compile>
  164. </ajc-test>
  165. <ajc-test dir="new"
  166. title="FAILING errors in unwoven advice not detected at compile time"
  167. keywords="from-knownbugs">
  168. <compile files="UnwovenAdviceNotCheckedCE.java">
  169. <message kind="error" line="13"/>
  170. </compile>
  171. </ajc-test>
  172. <ajc-test dir="new/pr626" pr="626"
  173. title="declared parent not defined in scope of target class declaration (CE in -usejavac only)"
  174. keywords="from-knownbugs">
  175. <compile options="-usejavac" files="a/Outer.java,b/Foo.java"/>
  176. <run class="a.Outer"/>
  177. </ajc-test>
  178. <ajc-test dir="new" pr="694"
  179. title="after returning advice on handler join points"
  180. keywords="from-knownbugs">
  181. <compile files="AfterReturningHandler.java"/>
  182. <run class="AfterReturningHandler"/>
  183. </ajc-test>
  184. <ajc-test dir="new" pr="745"
  185. title="stack overflow expected when advice recurses into itself"
  186. keywords="from-knownbugs">
  187. <compile files="AdviceOnAdviceRecursion.java"/>
  188. <run class="AdviceOnAdviceRecursion"/>
  189. </ajc-test>
  190. <ajc-test dir="new" pr="755"
  191. title="ajc dies on cflow into field init anon class"
  192. keywords="from-knownbugs">
  193. <compile files="CflowOfFieldInitAnonMethods.java"/>
  194. <run class="CflowOfFieldInitAnonMethods"/>
  195. </ajc-test>
  196. <ajc-test dir="pureJava"
  197. title="Losing information about initializers before checking their control flow"
  198. keywords="from-knownbugs">
  199. <compile files="InitializerFlowCf.java">
  200. <message kind="error" line="2"/>
  201. <message kind="error" line="4"/>
  202. </compile>
  203. </ajc-test>
  204. <ajc-test dir="new"
  205. title="the way we do privileged access for ++, etc, messes up floats"
  206. keywords="from-knownbugs">
  207. <compile files="FloatPrivilegedRoundoff.java"/>
  208. <run class="FloatPrivilegedRoundoff"/>
  209. </ajc-test>
  210. <ajc-test dir="pureJava"
  211. title="nested interface does not require new qualifier (7) [extra error message]"
  212. keywords="from-knownbugs,purejava">
  213. <compile files="InvalidNewQualifier7CE.java">
  214. <message kind="error" line="7"/>
  215. </compile>
  216. </ajc-test>
  217. <ajc-test dir="ng" title="interface inheritance should merge throws clauses"
  218. keywords="from-knownbugs,purejava">
  219. <compile files="ConflictingThrowsInheritance.java"/>
  220. <run class="ConflictingThrowsInheritance"/>
  221. </ajc-test>
  222. <ajc-test dir="pureJava"
  223. title="Locals inside other locals, ordering of processing, name-binding"
  224. keywords="from-knownbugs">
  225. <compile files="LocalInners3.java"/>
  226. <run class="LocalInners3"/>
  227. </ajc-test>
  228. <ajc-test dir="new" pr="774"
  229. title="interface self-reference in anonymous instance"
  230. keywords="from-knownbugs">
  231. <compile files="AnonymousSelfReference.java"/>
  232. <run class="AnonymousSelfReference"/>
  233. </ajc-test>
  234. <ajc-test dir="new" pr="776"
  235. title="self-reference from (aspect-declared) method-local class"
  236. keywords="from-knownbugs">
  237. <compile files="MethodSelfReference.java"/>
  238. <run class="MethodSelfReference"/>
  239. </ajc-test>
  240. <ajc-test dir="new" title="declaring type in signature of anonymous class"
  241. keywords="from-knownbugs">
  242. <compile files="AnonymousClassName.java"/>
  243. <run class="AnonymousClassName"/>
  244. </ajc-test>
  245. <ajc-test dir="new"
  246. title="VM ClassFormatError on windows if nul used as class name (todo NOTOURBUG, so nul class not loaded in test) (will not fail)"
  247. keywords="from-knownissues,purejava">
  248. <compile files="NulIOException3.java"/>
  249. <run class="NulIOException3"/>
  250. </ajc-test>
  251. <ajc-test dir="new" pr="602"
  252. title="LIMITATION no deprecation warnings (regardless of -deprecation flag)"
  253. keywords="from-knownissues,purejava">
  254. <compile options="-deprecation" files="DeprecationWarning.java">
  255. <message kind="warning" line="11"/>
  256. </compile>
  257. <run class="DeprecationWarning"/>
  258. </ajc-test>
  259. <ajc-test dir="new"
  260. title="around, before, after advice on handler join points"
  261. keywords="from-knownissues">
  262. <compile files="AroundHandler.java"/>
  263. <run class="AroundHandler"/>
  264. </ajc-test>
  265. <ajc-test dir="new"
  266. title="compiler limitation on asserts when using -usejavac"
  267. keywords="from-knownissues">
  268. <compile options="-usejavac,-source,1.4" files="AssertInInnerIntro.java"/>
  269. <run class="AssertInInnerIntro"/>
  270. </ajc-test>
  271. <ajc-test dir="new"
  272. title="binding parameters in a ! pcd lexically is always an error"
  273. keywords="from-knownissues">
  274. <compile files="BindingInNotCf.java">
  275. <message kind="error" line="9"/>
  276. <message kind="error" line="11"/>
  277. <message kind="error" line="13"/>
  278. </compile>
  279. </ajc-test>
  280. <ajc-test dir="new" pr="704"
  281. title="RFE mark generated static fields as transient"
  282. keywords="from-knownissues">
  283. <compile files="GeneratedStaticAsTransient.java"/>
  284. <run class="GeneratedStaticAsTransient"/>
  285. </ajc-test>
  286. <ajc-test dir="new" pr="706"
  287. title="compiling large concatenated string [bug also in javac]"
  288. keywords="from-knownissues,purejava">
  289. <compile files="LongStringAjc.java"/>
  290. <run class="LongStringAjc"/>
  291. </ajc-test>
  292. <ajc-test dir="new"
  293. title="rfe: SourceLocationImpl should implement toString as filename:column"
  294. keywords="from-knownissues">
  295. <compile files="SourceLocationToString.java"/>
  296. <run class="SourceLocationToString"/>
  297. </ajc-test>
  298. <ajc-test dir="new" pr="740"
  299. title="pointcut references with incorrect args should prompt compiler errors"
  300. keywords="from-knownissues">
  301. <compile files="PCDeclarationArgsCE.java">
  302. <message kind="error" line="29"/>
  303. <message kind="error" line="30"/>
  304. <message kind="error" line="31"/>
  305. <message kind="error" line="32"/>
  306. <message kind="error" line="33"/>
  307. <message kind="error" line="34"/>
  308. <message kind="error" line="35"/>
  309. <message kind="error" line="37"/>
  310. <message kind="error" line="38"/>
  311. <message kind="error" line="39"/>
  312. <message kind="error" line="40"/>
  313. <message kind="error" line="42"/>
  314. <message kind="error" line="44"/>
  315. <message kind="error" line="45"/>
  316. <message kind="error" line="46"/>
  317. <message kind="error" line="47"/>
  318. <message kind="error" line="49"/>
  319. <message kind="error" line="50"/>
  320. <message kind="error" line="53"/>
  321. </compile>
  322. </ajc-test>
  323. </suite>