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.

pureJava.xml 62KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897
  1. <suite>
  2. <!-- Pure Java Tests -->
  3. <ajc-test dir="pureJava/test120" title="unicodes and literals"
  4. keywords="from-base,purejava">
  5. <compile files="Driver.java"/>
  6. <run class="Driver"/>
  7. </ajc-test>
  8. <ajc-test dir="pureJava/test126" title="For Statement"
  9. keywords="from-base,purejava">
  10. <compile files="Driver.java"/>
  11. <run class="Driver"/>
  12. </ajc-test>
  13. <ajc-test dir="pureJava/test133"
  14. title="correct super call lookup for method().name()"
  15. keywords="from-base,purejava">
  16. <compile files="Driver.java"/>
  17. <run class="Driver"/>
  18. </ajc-test>
  19. <ajc-test dir="new" pr="99"
  20. title="combined logic expression (handling coericions vs. parens)"
  21. keywords="from-java,purejava">
  22. <compile files="CombinedLogic.java"/>
  23. <run class="CombinedLogic"/>
  24. </ajc-test>
  25. <ajc-test dir="new" pr="99"
  26. title="comment after class closes (with no new line at end)"
  27. keywords="from-java,purejava">
  28. <compile files="CommentAfterClass.java"/>
  29. <run class="CommentAfterClass"/>
  30. </ajc-test>
  31. <ajc-test dir="new" pr="108" title="multi-dimensional array initializers"
  32. keywords="from-java,purejava">
  33. <compile files="MultiArrays.java"/>
  34. <run class="MultiArrays"/>
  35. </ajc-test>
  36. <ajc-test dir="new" pr="125"
  37. title="probelm with the generated names of exceptions"
  38. keywords="from-java,purejava">
  39. <compile files="ExceptionNames.java"/>
  40. <run class="ExceptionNames"/>
  41. </ajc-test>
  42. <ajc-test dir="new" pr="109"
  43. title="checks if the class field can be used on all of the primitive types"
  44. keywords="from-java,purejava">
  45. <compile files="ClassFieldOnPrimitiveType.java"/>
  46. <run class="ClassFieldOnPrimitiveType"/>
  47. </ajc-test>
  48. <ajc-test dir="new"
  49. title="Doesn't parse an array-returning method that throws an exception"
  50. keywords="from-java,purejava">
  51. <compile files="ArrayMethod.java"/>
  52. <run class="ArrayMethod"/>
  53. </ajc-test>
  54. <ajc-test dir="pureJava"
  55. title="check that nested constructions of local classes work"
  56. keywords="from-java,purejava">
  57. <compile files="NestedConstructionsOfLocalClasses.java"/>
  58. <run class="NestedConstructionsOfLocalClasses"/>
  59. </ajc-test>
  60. <ajc-test dir="pureJava"
  61. title="Make sure anonymous classes can have non-nullary constructors"
  62. keywords="from-java,purejava">
  63. <compile files="NonNullaryAnonymous.java"/>
  64. <run class="NonNullaryAnonymous"/>
  65. </ajc-test>
  66. <ajc-test dir="new" pr="417"
  67. title="Full names are dropped from inner interfaces"
  68. keywords="from-java,purejava">
  69. <compile files="PR417a.java"/>
  70. <run class="PR417a"/>
  71. </ajc-test>
  72. <ajc-test dir="new" pr="417"
  73. title="Making sure full names stay on static inner classes"
  74. keywords="from-java,purejava">
  75. <compile files="PR417b.java"/>
  76. <run class="PR417b"/>
  77. </ajc-test>
  78. <ajc-test dir="new" pr="408"
  79. title="Not binding constructor when using more than one compilation"
  80. keywords="from-java,purejava">
  81. <compile files="OuterAbstract_PR408.java"/>
  82. <compile files="ExtendsOuterAbstract_PR408.java"/>
  83. <compile files="ConstructorNotFound_PR408.java"/>
  84. <run class="ConstructorNotFound_PR408"/>
  85. </ajc-test>
  86. <ajc-test dir="pureJava" title="return;;; is not really legal"
  87. keywords="from-java,purejava">
  88. <compile files="ReachableEmpty.java">
  89. <message kind="error" line="5"/>
  90. <message kind="error" line="9"/>
  91. <message kind="error" line="13"/>
  92. <message kind="error" line="17"/>
  93. </compile>
  94. </ajc-test>
  95. <ajc-test dir="new"
  96. title="ajc treating Throwable as checked, issuing error if not found"
  97. keywords="from-java,purejava">
  98. <compile files="FalseThrowsCE.java"/>
  99. <run class="FalseThrowsCE"/>
  100. </ajc-test>
  101. <ajc-test dir="new" pr="328"
  102. title="package protected classes becoming public"
  103. keywords="from-java,purejava">
  104. <compile files="PR328.java"/>
  105. <run class="PR328"/>
  106. </ajc-test>
  107. <ajc-test dir="new" title="IOException on windows if nul used as identifier"
  108. keywords="from-java,purejava">
  109. <compile files="NulIOException.java">
  110. <message kind="error" line="12"/>
  111. <message kind="error" line="14"/>
  112. <message kind="error" line="17"/>
  113. </compile>
  114. </ajc-test>
  115. <ajc-test dir="new"
  116. title="NullPointerException (not compiler error) when extending non-static inner class"
  117. keywords="from-java,purejava">
  118. <compile files="ExtendInnerCE.java">
  119. <message kind="error" line="3"/>
  120. </compile>
  121. </ajc-test>
  122. <ajc-test dir="new"
  123. title="compiler flags final static variable as indefinite in member assignment."
  124. keywords="from-java,purejava">
  125. <compile files="DefiniteStatic.java"/>
  126. <run class="DefiniteStatic"/>
  127. </ajc-test>
  128. <ajc-test dir="new"
  129. title="confirm no IOException on windows if nul used as identifier"
  130. keywords="from-java,purejava">
  131. <compile files="NulIOException2.java"/>
  132. <run class="NulIOException2"/>
  133. </ajc-test>
  134. <ajc-test dir="new"
  135. title="final constructor parameter causes incorrect compiler error"
  136. keywords="from-java,purejava">
  137. <compile files="FinalConstructorParm.java"/>
  138. <run class="FinalConstructorParm"/>
  139. </ajc-test>
  140. <ajc-test dir="new" title="Error expected for field of type void"
  141. keywords="from-java,purejava">
  142. <compile files="VoidField.java">
  143. <message kind="error" line="2"/>
  144. <message kind="error" line="4"/>
  145. <message kind="error" line="6"/>
  146. </compile>
  147. </ajc-test>
  148. <ajc-test dir="new" title="Error expected for constructor in interfaces"
  149. keywords="from-java,purejava">
  150. <compile files="InterfaceConstructor.java">
  151. <message kind="error" line="2"/>
  152. <message kind="error" line="6"/>
  153. <message kind="error" line="8"/>
  154. </compile>
  155. </ajc-test>
  156. <ajc-test dir="new" pr="558"
  157. title="class name for identifier as String should provoke error"
  158. keywords="from-java,purejava">
  159. <compile files="PR558.java">
  160. <message kind="error" line="4"/>
  161. </compile>
  162. </ajc-test>
  163. <ajc-test dir="new" pr="567"
  164. title="cyclic interface inheritance not detected if no classes implement the interfaces"
  165. keywords="from-java,purejava,messages-vary">
  166. <compile files="CyclicInterfaceInheritance.java"
  167. options="!eclipse">
  168. <message kind="error" line="14"/>
  169. <message kind="error" line="15"/>
  170. </compile>
  171. </ajc-test>
  172. <ajc-test dir="new" pr="567" title="cyclic class inheritance"
  173. keywords="from-java,purejava">
  174. <compile files="CyclicClassInheritance.java">
  175. <message kind="error" line="11"/>
  176. <message kind="error" line="12"/>
  177. </compile>
  178. </ajc-test>
  179. <!-- broken test - both javac and eclipse give error on line 35 -->
  180. <!--
  181. <ajc-test dir="pureJava" title="Type names are not expressions on their own"
  182. keywords="from-java,purejava">
  183. <compile files="TypeExprErrors.java">
  184. <message kind="error" line="10"/>
  185. <message kind="error" line="17"/>
  186. <message kind="error" line="18"/>
  187. <message kind="error" line="19"/>
  188. <message kind="error" line="20"/>
  189. <message kind="error" line="21"/>
  190. <message kind="error" line="22"/>
  191. <message kind="error" line="23"/>
  192. <message kind="error" line="24"/>
  193. <message kind="error" line="25"/>
  194. <message kind="error" line="26"/>
  195. <message kind="error" line="27"/>
  196. <message kind="error" line="28"/>
  197. <message kind="error" line="29"/>
  198. <message kind="error" line="30"/>
  199. <message kind="error" line="31"/>
  200. <message kind="error" line="32"/>
  201. <message kind="error" line="33"/>
  202. <message kind="error" line="34"/>
  203. <message kind="error" line="36"/>
  204. <message kind="error" line="37"/>
  205. </compile>
  206. </ajc-test>
  207. -->
  208. <ajc-test dir="pureJava/nameConflicts"
  209. title="type and package name conflicts are resolved happily (1a)"
  210. keywords="from-java,purejava">
  211. <compile files="p1/Main1.java,p1/Foo.java,p1/p2.java"/>
  212. <run class="p1.Main1"/>
  213. </ajc-test>
  214. <ajc-test dir="pureJava/nameConflicts"
  215. title="(fails in USEJAVAC) type and package name conflicts are resolved happily (1b)"
  216. keywords="from-java,purejava">
  217. <compile files="p1.java,p1/p2/Foo.java"/>
  218. <compile files="p1/Main1.java,p1/Foo.java,p1/p2.java"/>
  219. <run class="p1.Main1"/>
  220. </ajc-test>
  221. <ajc-test dir="pureJava/nameConflicts"
  222. title="type and package name conflicts caught as errors (1)"
  223. keywords="from-java,purejava">
  224. <compile files="p1/p2.java,p1/Main1.java,p1/Foo.java,p1/p2/Foo.java">
  225. <message kind="error" line="3"/>
  226. </compile>
  227. </ajc-test>
  228. <ajc-test dir="pureJava"
  229. title="flow analysis where final variable set in another constructor"
  230. keywords="from-java,purejava">
  231. <compile files="ConstructorFlow.java"/>
  232. <run class="ConstructorFlow"/>
  233. </ajc-test>
  234. <ajc-test dir="new" pr="584"
  235. title="Can construct inner classes using qualified expressions"
  236. keywords="from-java,purejava">
  237. <compile files="PR584.java"/>
  238. <run class="PR584"/>
  239. </ajc-test>
  240. <ajc-test dir="new/protectedStatic" pr="585"
  241. title="subclass unable to access protected static methods using type-qualified references"
  242. keywords="from-java,purejava">
  243. <compile files="SubClass.java,pack/SuperClass.java"/>
  244. <run class="SubClass"/>
  245. </ajc-test>
  246. <ajc-test dir="new" pr="588" title="Undefined inner class constructor"
  247. keywords="from-java,purejava">
  248. <compile files="UndefinedInner.java">
  249. <message kind="error" line="6"/>
  250. </compile>
  251. </ajc-test>
  252. <ajc-test dir="new/packagePrefix" pr="574"
  253. title="classes that are package prefixes are illegal"
  254. keywords="from-java,purejava,messages-vary">
  255. <compile files="p/prefix.java,p/prefix/SomeClass.java"
  256. options="!eclipse">
  257. <message kind="error" line="2"/>
  258. </compile>
  259. </ajc-test>
  260. <ajc-test dir="new/introTypeMissing"
  261. title="valid type expressions for introduced type testing"
  262. keywords="from-java,purejava">
  263. <compile files="TargetClass.java,Util.java"/>
  264. <run class="TargetClass"/>
  265. </ajc-test>
  266. <ajc-test dir="new"
  267. title="PR591 compiler error expected when directly calling unimplemented abstract method using super"
  268. keywords="from-java,purejava">
  269. <compile files="AbstractMethodCall.java">
  270. <message kind="error" line="10"/>
  271. </compile>
  272. </ajc-test>
  273. <ajc-test dir="pureJava"
  274. title="suggested by Jacks 15.28-qualified-namestr tests"
  275. keywords="from-java,purejava,messages-vary">
  276. <compile files="NonConstants.java"
  277. options="!eclipse">
  278. <message kind="error" line="13"/>
  279. <message kind="error" line="14"/>
  280. <message kind="error" line="15"/>
  281. <message kind="error" line="16"/>
  282. <message kind="error" line="17"/>
  283. </compile>
  284. </ajc-test>
  285. <ajc-test dir="pureJava"
  286. title="suggested by jacks 3.7-15 all comments must be closed"
  287. keywords="from-java,purejava">
  288. <compile files="OpenComment.java">
  289. <message kind="error" line="7"/>
  290. </compile>
  291. </ajc-test>
  292. <ajc-test dir="new/classaccess"
  293. title="package class access not enforced outside of package"
  294. keywords="from-java,purejava">
  295. <compile files="main/Main.java,pack1/Target.java">
  296. <message kind="error" line="7"/>
  297. </compile>
  298. </ajc-test>
  299. <ajc-test dir="new" pr="631" title="expecting CE for ambiguous reference"
  300. keywords="from-java,purejava">
  301. <compile files="AmbiguousClassReference.java">
  302. <message kind="error" line="11"/>
  303. </compile>
  304. </ajc-test>
  305. <ajc-test dir="new" pr="643" title="try without catch or finally"
  306. keywords="from-java,purejava,message-vary">
  307. <compile files="TryNoCatchCE.java"
  308. options="!eclipse">
  309. <message kind="error" line="6"/>
  310. </compile>
  311. </ajc-test>
  312. <ajc-test dir="new" pr="642" title="invalid floating-point constant"
  313. keywords="from-java,purejava,messages-vary">
  314. <compile files="ParsingFloatCE.java"
  315. options="!eclipse">
  316. <message kind="error" line="5"/>
  317. </compile>
  318. </ajc-test>
  319. <ajc-test dir="new/subaspects" pr="647"
  320. title="concrete aspect unable to access abstract package-private method in parent for overriding"
  321. keywords="from-java,purejava,messages-vary"
  322. comment="XXX fix source - package-private">
  323. <compile files="parent/ParentMethodCE.java,child/ChildMethodCE.java"
  324. options="!eclipse">
  325. <message kind="warning" line="28"/>
  326. <message kind="error" line="27"/>
  327. </compile>
  328. </ajc-test>
  329. <ajc-test dir="new"
  330. title="super reference used to disambiguate names of different but compatible types"
  331. keywords="from-java,purejava">
  332. <compile files="SuperDisambiguatingType.java"/>
  333. <run class="SuperDisambiguatingType"/>
  334. </ajc-test>
  335. <ajc-test dir="pureJava" title="anonymous explicit inner constructors"
  336. keywords="from-java,purejava">
  337. <compile files="QualifiedNewCP.java"/>
  338. <run class="QualifiedNewCP"/>
  339. </ajc-test>
  340. <ajc-test dir="pureJava"
  341. title="Overruning the lineStarts buffer, DO NOT EDIT THIS FILE!!!!"
  342. keywords="from-java,purejava">
  343. <compile files="AJError.java"/>
  344. <run class="AJError"/>
  345. </ajc-test>
  346. <ajc-test dir="new" pr="701" title="no CE for unambiguous type reference"
  347. keywords="from-java,purejava">
  348. <compile files="UnambiguousClassReference3CP.java"/>
  349. <run class="UnambiguousClassReference3CP"/>
  350. </ajc-test>
  351. <ajc-test dir="new" pr="701"
  352. title="CE for ambiguous type reference (imports)"
  353. keywords="from-java,purejava">
  354. <compile files="AmbiguousClassReference2CE.java">
  355. <message kind="error" line="2"/>
  356. <message kind="error" line="10"/>
  357. </compile>
  358. </ajc-test>
  359. <ajc-test dir="new" pr="701"
  360. title="CE for ambiguous type reference (two type declarations)"
  361. keywords="from-java,purejava,messages-vary">
  362. <compile files="AmbiguousClassReference3CE.java"
  363. options="!eclipse">
  364. <message kind="error" line="10"/>
  365. </compile>
  366. </ajc-test>
  367. <ajc-test dir="new" pr="701"
  368. title="CE for ambiguous type reference (two inner types)"
  369. keywords="from-java,purejava,messages-vary">
  370. <compile files="AmbiguousClassReference4CE.java"
  371. options="!eclipse">
  372. <message kind="error" line="10"/>
  373. </compile>
  374. </ajc-test>
  375. <ajc-test dir="new" pr="709" title="final assignment in loop"
  376. keywords="from-java,purejava">
  377. <compile files="FinalInLoop.java"/>
  378. <run class="FinalInLoop"/>
  379. </ajc-test>
  380. <ajc-test dir="pureJava" title="private super access in inners"
  381. keywords="from-java,purejava">
  382. <compile files="PrivateSuperInnerAccess.java"/>
  383. <run class="PrivateSuperInnerAccess"/>
  384. </ajc-test>
  385. <ajc-test dir="pureJava"
  386. title="nested interface does not require new qualifier (8)"
  387. keywords="from-java,purejava">
  388. <compile files="InvalidNewQualifier8CE.java">
  389. <message kind="error" line="8"/>
  390. </compile>
  391. </ajc-test>
  392. <ajc-test dir="pureJava"
  393. title="nested interface does not require new qualifier (9)"
  394. keywords="from-java,purejava">
  395. <compile files="InvalidNewQualifier9CE.java">
  396. <message kind="error" line="9"/>
  397. </compile>
  398. </ajc-test>
  399. <ajc-test dir="pureJava"
  400. title="nested interface does not require new qualifier (10)"
  401. keywords="from-java,purejava">
  402. <compile files="InvalidNewQualifier10CE.java">
  403. <message kind="error" line="10"/>
  404. </compile>
  405. </ajc-test>
  406. <ajc-test dir="pureJava"
  407. title="nested interface does not require new qualifier (14)"
  408. keywords="from-java,purejava">
  409. <compile files="InvalidNewQualifier14CE.java">
  410. <message kind="error" line="14"/>
  411. </compile>
  412. </ajc-test>
  413. <ajc-test dir="pureJava"
  414. title="nested interface does not require new qualifier (15)"
  415. keywords="from-java,purejava">
  416. <compile files="InvalidNewQualifier15CE.java">
  417. <message kind="error" line="15"/>
  418. </compile>
  419. </ajc-test>
  420. <ajc-test dir="pureJava"
  421. title="nested interface does not require new qualifier (16)"
  422. keywords="from-java,purejava">
  423. <compile files="InvalidNewQualifier16CE.java">
  424. <message kind="error" line="16"/>
  425. </compile>
  426. </ajc-test>
  427. <ajc-test dir="errors"
  428. title="check that constructor name's match the enclosing type"
  429. keywords="from-errors,purejava">
  430. <compile files="BadConstructorName.java">
  431. <message kind="error" line="4"/>
  432. </compile>
  433. </ajc-test>
  434. <ajc-test dir="errors"
  435. title="errors for not applicable or accessible methods"
  436. keywords="from-errors,purejava">
  437. <compile files="MethodsNotFound.java">
  438. <message kind="error" line="4"/>
  439. <message kind="error" line="8"/>
  440. <message kind="error" line="12"/>
  441. </compile>
  442. </ajc-test>
  443. <ajc-test dir="errors" pr="218"
  444. title="import statement within class body crashes compiler"
  445. keywords="from-errors,purejava">
  446. <compile files="ImportWithinClassBody.java">
  447. <message kind="error" line="8"/>
  448. </compile>
  449. </ajc-test>
  450. <ajc-test dir="errors"
  451. title="Accessing instance fields and instance methods statically."
  452. keywords="from-errors,purejava">
  453. <compile files="AccessingInstanceFieldsStatically.java">
  454. <message kind="error" line="15"/>
  455. <message kind="error" line="16"/>
  456. <message kind="error" line="17"/>
  457. <message kind="error" line="18"/>
  458. <message kind="error" line="26"/>
  459. <message kind="error" line="27"/>
  460. <message kind="error" line="30"/>
  461. <message kind="error" line="38"/>
  462. <message kind="error" line="39"/>
  463. </compile>
  464. </ajc-test>
  465. <ajc-test dir="errors" title="Crashes when a cast is within another cast"
  466. keywords="from-errors,purejava">
  467. <compile files="CastInCast.java">
  468. <message kind="error" line="9"/>
  469. </compile>
  470. </ajc-test>
  471. <ajc-test dir="errors" title="Crashes when a cast of the form )int) appears"
  472. keywords="from-errors,purejava,messages-vary">
  473. <compile files="BadCast.java"
  474. options="!eclipse">
  475. <message kind="error" line="9"/>
  476. <message kind="error" line="10"/>
  477. </compile>
  478. </ajc-test>
  479. <ajc-test dir="errors" title="Crashes when the closing brace is reversed"
  480. keywords="from-errors,purejava,messages-vary">
  481. <compile files="ClosingBrace.java"
  482. options="!eclipse">
  483. <message kind="error" line="11"/>
  484. </compile>
  485. </ajc-test>
  486. <ajc-test dir="errors"
  487. title="Crashes when a method name is missing in a call -- e.g. 'System.out.();'"
  488. keywords="from-errors,purejava">
  489. <compile files="NoMethodName.java">
  490. <message kind="error" line="9"/>
  491. </compile>
  492. </ajc-test>
  493. <ajc-test dir="errors" title="Crashes when a bad r-value appears."
  494. keywords="from-errors,purejava">
  495. <compile files="BadValue.java">
  496. <message kind="error" line="9"/>
  497. </compile>
  498. </ajc-test>
  499. <ajc-test dir="errors" title="Two underscores as a variables causes a crash"
  500. keywords="from-errors,purejava">
  501. <compile files="BadVar.java">
  502. <message kind="error" line="9"/>
  503. </compile>
  504. </ajc-test>
  505. <ajc-test dir="errors"
  506. title="Crashes when assigning to a final static in an intializer and declaration"
  507. keywords="from-errors,purejava">
  508. <compile files="FinalStatic.java">
  509. <message kind="error" line="13"/>
  510. </compile>
  511. </ajc-test>
  512. <ajc-test dir="errors" title="Crashes when two dots appear instead of one"
  513. keywords="from-errors,purejava">
  514. <compile files="TwoDots.java">
  515. <message kind="error" line="9"/>
  516. </compile>
  517. </ajc-test>
  518. <ajc-test dir="errors" title="Crashes when there're stray dots"
  519. keywords="from-errors,purejava">
  520. <compile files="StrayDot.java">
  521. <message kind="error" line="9"/>
  522. </compile>
  523. </ajc-test>
  524. <ajc-test dir="errors" title="Stray characters cause a crash"
  525. comment="XXX public class in wrong file"
  526. keywords="from-errors,purejava">
  527. <compile files="StraySlash.java">
  528. <message kind="error" line="9"/>
  529. </compile>
  530. </ajc-test>
  531. <ajc-test dir="errors" title="Colon instead of a semi-colon causes a crash"
  532. comment="XXX public class in wrong file"
  533. keywords="from-errors,purejava">
  534. <compile files="Colon.java">
  535. <message kind="error" line="9"/>
  536. </compile>
  537. </ajc-test>
  538. <ajc-test dir="errors"
  539. title="type error in initializer caught by ajc, not javac"
  540. keywords="from-errors,purejava">
  541. <compile files="ArrayInitializerType.java">
  542. <message kind="error" line="2"/>
  543. </compile>
  544. </ajc-test>
  545. <ajc-test dir="errors"
  546. title="Circular inheritance with classes causes a stack overflow."
  547. keywords="from-errors,purejava">
  548. <compile files="CircularExtends.java">
  549. <message kind="error" line="7"/>
  550. </compile>
  551. </ajc-test>
  552. <ajc-test dir="errors" title="Missing ;" keywords="from-errors,purejava">
  553. <compile files="PR405.java">
  554. <message kind="error" line="15"/>
  555. </compile>
  556. </ajc-test>
  557. <ajc-test dir="errors"
  558. title="cast expressions should not allow casts between ifaces and array types"
  559. keywords="from-errors,purejava">
  560. <compile files="InterfaceArrayCast.java">
  561. <message kind="error" line="9"/>
  562. <message kind="error" line="10"/>
  563. </compile>
  564. </ajc-test>
  565. <ajc-test dir="errors"
  566. title="parsing errors for various bad forms of NewArrayExprs."
  567. keywords="from-errors,purejava">
  568. <compile files="BadNewArrayExprs.java">
  569. <message kind="error" line="4"/>
  570. <message kind="error" line="5"/>
  571. <message kind="error" line="6"/>
  572. <message kind="error" line="7"/>
  573. </compile>
  574. </ajc-test>
  575. <ajc-test dir="errors"
  576. title="good error for bad field and inner class references"
  577. keywords="from-errors,purejava">
  578. <compile files="BadReferences.java">
  579. <message kind="error" line="3"/>
  580. <message kind="error" line="5"/>
  581. </compile>
  582. </ajc-test>
  583. <ajc-test dir="errors"
  584. title="Implementing a non-interface used to crash the compiler."
  585. keywords="from-errors,purejava">
  586. <compile files="PR333.java">
  587. <message kind="error" line="6"/>
  588. </compile>
  589. </ajc-test>
  590. <ajc-test dir="errors"
  591. title="error of no return statement detected not by ajc but by javac (line 4)"
  592. keywords="from-errors,purejava">
  593. <compile files="NoReturnStatementSimple.java">
  594. <message kind="error" line="4"/>
  595. </compile>
  596. </ajc-test>
  597. <ajc-test dir="errors" title="class and interface extension"
  598. keywords="from-errors,purejava,messages-vary">
  599. <compile files="BadExtension.java"
  600. options="!eclipse">
  601. <message kind="error" line="7"/>
  602. <message kind="error" line="9"/>
  603. <message kind="error" line="16"/>
  604. <message kind="error" line="17"/>
  605. <message kind="error" line="18"/>
  606. <message kind="error" line="19"/>
  607. <message kind="error" line="21"/>
  608. <message kind="error" line="35"/>
  609. <message kind="error" line="38"/>
  610. </compile>
  611. </ajc-test>
  612. <ajc-test dir="errors" title="types in throws clauses"
  613. keywords="from-errors,purejava">
  614. <compile files="ThrowsClause.java">
  615. <message kind="error" line="2"/>
  616. <message kind="error" line="4"/>
  617. <message kind="error" line="13"/>
  618. </compile>
  619. </ajc-test>
  620. <ajc-test dir="errors" title="bad switch syntax"
  621. keywords="from-errors,purejava">
  622. <compile files="Switch.java">
  623. <message kind="error" line="4"/>
  624. </compile>
  625. </ajc-test>
  626. <ajc-test dir="pureJava"
  627. title="Referencing various things from static contexts"
  628. keywords="from-errors,purejava">
  629. <compile files="StaticContexts.java">
  630. <message kind="error" line="11"/>
  631. <message kind="error" line="18"/>
  632. <message kind="error" line="19"/>
  633. <message kind="error" line="20"/>
  634. <message kind="error" line="21"/>
  635. <message kind="error" line="27"/>
  636. <message kind="error" line="28"/>
  637. <message kind="error" line="31"/>
  638. <message kind="error" line="35"/>
  639. <message kind="error" line="36"/>
  640. </compile>
  641. </ajc-test>
  642. <ajc-test dir="errors"
  643. title="Some expressions are illegal expression statements"
  644. keywords="from-errors,purejava">
  645. <compile files="BadExpressionStatement.java">
  646. <message kind="error" line="3"/>
  647. </compile>
  648. </ajc-test>
  649. <ajc-test dir="pureJava" title="illegal forward reference"
  650. keywords="from-errors,purejava">
  651. <compile files="IllegalForwardReference.java">
  652. <message kind="error" line="9"/>
  653. </compile>
  654. </ajc-test>
  655. <ajc-test dir="errors" title="protected accessibility"
  656. keywords="from-errors,purejava">
  657. <compile files="protectedAccess/Main.java,protectedAccess/p1/C1.java">
  658. <message kind="error" line="26"/>
  659. <message kind="error" line="28"/>
  660. <message kind="error" line="29"/>
  661. <message kind="error" line="31"/>
  662. <message kind="error" line="37"/>
  663. <message kind="error" line="45"/>
  664. <message kind="error" line="46"/>
  665. <message kind="error" line="54"/>
  666. <message kind="error" line="55"/>
  667. </compile>
  668. </ajc-test>
  669. <ajc-test dir="errors" title="parse-time illegal modifiers"
  670. keywords="from-errors,purejava">
  671. <compile files="Modifiers1.java">
  672. <message kind="error" line="2"/>
  673. <message kind="error" line="3"/>
  674. <message kind="error" line="6"/>
  675. </compile>
  676. </ajc-test>
  677. <ajc-test dir="errors" title="check-time illegal modifiers"
  678. keywords="from-errors,purejava">
  679. <compile files="Modifiers.java">
  680. <message kind="error" line="2"/>
  681. <message kind="error" line="3"/>
  682. <message kind="error" line="4"/>
  683. <message kind="error" line="6"/>
  684. <message kind="error" line="7"/>
  685. <message kind="error" line="8"/>
  686. <message kind="error" line="9"/>
  687. <message kind="error" line="11"/>
  688. </compile>
  689. </ajc-test>
  690. <ajc-test dir="errors" title="illegal synchronized stmts"
  691. keywords="from-errors,purejava,messages-vary">
  692. <compile files="BadSynchronized.java"
  693. options="!eclipse">
  694. <message kind="error" line="6"/>
  695. </compile>
  696. </ajc-test>
  697. <ajc-test dir="pureJava" title="modifiers on interface members"
  698. keywords="from-errors,purejava">
  699. <compile files="InterfaceMembers.java">
  700. <message kind="error" line="2"/>
  701. <message kind="error" line="3"/>
  702. <message kind="error" line="4"/>
  703. <message kind="error" line="5"/>
  704. <message kind="error" line="7"/>
  705. <message kind="error" line="8"/>
  706. <message kind="error" line="9"/>
  707. <message kind="error" line="10"/>
  708. </compile>
  709. </ajc-test>
  710. <ajc-test dir="errors"
  711. title="good errors (and not too many) for missing members"
  712. comment="XXX import of class in default package"
  713. keywords="from-errors,purejava">
  714. <compile files="NotFound.java">
  715. <message kind="error" line="1"/>
  716. <message kind="error" line="2"/>
  717. <message kind="error" line="6"/>
  718. <message kind="error" line="9"/>
  719. <message kind="error" line="10"/>
  720. <message kind="error" line="14"/>
  721. <message kind="error" line="16"/>
  722. </compile>
  723. </ajc-test>
  724. <ajc-test dir="new" pr="536"
  725. title="expecting compile failures with subclass narrowing scope of superclass methods or accessing private superclass variables"
  726. keywords="from-errors,purejava">
  727. <compile files="RestrictingVisibilityCF.java">
  728. <message kind="error" line="27"/>
  729. <message kind="error" line="29"/>
  730. <message kind="error" line="31"/>
  731. <message kind="error" line="39"/>
  732. <message kind="error" line="41"/>
  733. <message kind="error" line="46"/>
  734. <message kind="error" line="48"/>
  735. <message kind="error" line="53"/>
  736. </compile>
  737. </ajc-test>
  738. <ajc-test dir="errors"
  739. title="inner classes may not have static non-constant members"
  740. keywords="from-errors,purejava">
  741. <compile files="InnerMembers.java">
  742. <message kind="error" line="8"/>
  743. <message kind="error" line="9"/>
  744. <message kind="error" line="10"/>
  745. <message kind="error" line="11"/>
  746. <message kind="error" line="16"/>
  747. <message kind="error" line="17"/>
  748. </compile>
  749. </ajc-test>
  750. <ajc-test dir="pureJava" title="flow analysis with local types"
  751. keywords="from-errors,purejava">
  752. <compile files="InnerFlow.java">
  753. <message kind="error" line="5"/>
  754. </compile>
  755. </ajc-test>
  756. <ajc-test dir="new"
  757. title="PR584 Can construct inner classes using qualified expressions"
  758. keywords="from-resolved_10rc3,purejava">
  759. <compile files="PR584.java"/>
  760. <run class="PR584"/>
  761. </ajc-test>
  762. <ajc-test dir="new" pr="715" title="incrementing objects, arrays - 2"
  763. keywords="from-resolved_104,purejava">
  764. <compile files="ArrayInc2CE.java">
  765. <message kind="error" line="12"/>
  766. <message kind="error" line="13"/>
  767. <message kind="error" line="14"/>
  768. <message kind="error" line="15"/>
  769. </compile>
  770. </ajc-test>
  771. <ajc-test dir="new" pr="715" title="incrementing objects, arrays CE"
  772. keywords="from-resolved_104,purejava,messages-vary">
  773. <compile files="ArrayIncCE.java"
  774. options="!eclipse">
  775. <message kind="error" line="15"/>
  776. <message kind="error" line="16"/>
  777. <message kind="error" line="17"/>
  778. <message kind="error" line="18"/>
  779. <message kind="error" line="19"/>
  780. </compile>
  781. </ajc-test>
  782. <ajc-test dir="new" pr="715" title="incrementing objects, arrays - 3"
  783. keywords="from-resolved_104,purejava">
  784. <compile files="ArrayInc3CE.java">
  785. <message kind="error" line="15"/>
  786. <message kind="error" line="16"/>
  787. <message kind="error" line="17"/>
  788. <message kind="error" line="18"/>
  789. <message kind="error" line="19"/>
  790. </compile>
  791. </ajc-test>
  792. <ajc-test dir="new" pr="715" title="incrementing objects, arrays"
  793. keywords="from-resolved_104,purejava">
  794. <compile files="ArrayInc.java"/>
  795. <run class="ArrayInc"/>
  796. </ajc-test>
  797. <ajc-test dir="pureJava" pr="737"
  798. title="no circularity errors simply because of inners (1)"
  799. keywords="from-resolved_105,purejava">
  800. <compile files="circle/Test1CP.java"/>
  801. <run class="circle.Test1CP"/>
  802. </ajc-test>
  803. <ajc-test dir="pureJava" pr="737"
  804. title="no circularity errors simply because of inners (2)"
  805. keywords="from-resolved_105,purejava">
  806. <compile files="circle/Test2CP.java"/>
  807. <run class="circle.Test2CP"/>
  808. </ajc-test>
  809. <ajc-test dir="pureJava" pr="737"
  810. title="should have circular inheritance errors (1)"
  811. keywords="from-resolved_105,purejava,messages-vary">
  812. <compile files="circle/Test1CF.java"
  813. options="!eclipse">
  814. <message kind="error" line="7"/>
  815. <message kind="error" line="15"/>
  816. <message kind="error" line="17"/>
  817. </compile>
  818. </ajc-test>
  819. <ajc-test dir="pureJava" pr="737"
  820. title="should have circular inheritance errors (2)"
  821. keywords="from-resolved_105,purejava,messages-vary">
  822. <compile files="circle/Test2CF.java"
  823. options="!eclipse">
  824. <message kind="error" line="6"/>
  825. <message kind="error" line="10"/>
  826. <message kind="error" line="15"/>
  827. </compile>
  828. </ajc-test>
  829. <ajc-test dir="pureJava" pr="728"
  830. title="interface using preceding subinterface in its definition"
  831. keywords="from-resolved_105,purejava">
  832. <compile files="ParentUsingChild.java"/>
  833. <run class="ParentUsingChild"/>
  834. </ajc-test>
  835. <ajc-test dir="new" pr="645"
  836. title="Parent interface using public inner interface of child in same file"
  837. keywords="from-resolved_105,purejava">
  838. <compile files="ParentInterfaceUsingChildInnerInterface.java"/>
  839. <run class="ParentInterfaceUsingChildInnerInterface"/>
  840. </ajc-test>
  841. <ajc-test dir="errors"
  842. title="a type is not allowed to extend or implement its own innner type"
  843. keywords="from-resolved_105,purejava">
  844. <compile files="NestedInterfaceTest.java">
  845. <message kind="error" line="1"/>
  846. </compile>
  847. </ajc-test>
  848. <ajc-test dir="pureJava" title="try requires block JLS 14.19"
  849. keywords="from-resolved_105,purejava,messages-vary">
  850. <compile files="TryBlockRequiredCE.java"
  851. options="!eclipse">
  852. <message kind="error" line="6"/>
  853. </compile>
  854. </ajc-test>
  855. <ajc-test dir="pureJava" pr="722" title="loop expressions not declarations"
  856. keywords="from-resolved_105,purejava,messages-vary">
  857. <compile files="DeclarationsInLoopsCE.java"
  858. options="!eclipse">
  859. <message kind="error" line="7"/>
  860. </compile>
  861. </ajc-test>
  862. <ajc-test dir="new" pr="663"
  863. title="no error when public class is in file of a different name"
  864. keywords="from-resolved_105,purejava">
  865. <compile options="-strict" files="PublicClassWrongFilename.java">
  866. <message kind="error" line="3"/>
  867. </compile>
  868. </ajc-test>
  869. <ajc-test dir="pureJava" pr="739"
  870. title="local variables must be final to be accessed from inner class"
  871. keywords="from-resolved_105,purejava">
  872. <compile files="LocalsFromInnerCE.java">
  873. <message kind="error" line="6"/>
  874. <message kind="error" line="13"/>
  875. <message kind="error" line="19"/>
  876. <message kind="error" line="25"/>
  877. <message kind="error" line="32"/>
  878. <message kind="error" line="40"/>
  879. <message kind="error" line="51"/>
  880. <message kind="error" line="61"/>
  881. <message kind="error" line="67"/>
  882. <message kind="error" line="75"/>
  883. <message kind="error" line="81"/>
  884. </compile>
  885. </ajc-test>
  886. <ajc-test dir="pureJava" pr="739"
  887. title="final local variables may be accessed from inner class"
  888. keywords="from-resolved_105,purejava">
  889. <compile files="LocalsFromInnerCP.java"/>
  890. <run class="LocalsFromInnerCP"/>
  891. </ajc-test>
  892. <ajc-test dir="pureJava" pr="723" title="missing package identifier"
  893. keywords="from-resolved_105,purejava">
  894. <compile files="MissingPackageCE.java">
  895. <message kind="error" line="2"/>
  896. </compile>
  897. </ajc-test>
  898. <ajc-test dir="new" pr="701"
  899. title="CE for ambiguous type reference (two files in package)"
  900. keywords="from-resolved_105,purejava">
  901. <compile
  902. files="ambiguousClass/AmbiguousReferent.java,ambiguousClass/AmbiguousClassReference.java">
  903. <message kind="error" line="5"/>
  904. </compile>
  905. </ajc-test>
  906. <ajc-test dir="new"
  907. title="initializer can throw so long as all constructors declare so"
  908. keywords="from-resolved_105,purejava">
  909. <compile files="InitializerWithThrow.java"/>
  910. <run class="InitializerWithThrow"/>
  911. </ajc-test>
  912. <ajc-test dir="pureJava"
  913. title="interfaces may not contain initializers (bug found by jacks)"
  914. keywords="from-resolved_105,purejava">
  915. <compile files="InterfaceMembersCf.java">
  916. <message kind="error" line="2"/>
  917. <message kind="error" line="3"/>
  918. </compile>
  919. </ajc-test>
  920. <ajc-test dir="pureJava"
  921. title="initializers must be able to complete normally (found by jacks)"
  922. keywords="from-resolved_105,purejava,messages-vary">
  923. <compile files="InitializerFlowCf.java"
  924. options="!eclipse">
  925. <message kind="error" line="2"/>
  926. <message kind="error" line="4"/>
  927. </compile>
  928. </ajc-test>
  929. <ajc-test dir="pureJava" title="more tests of super alone"
  930. keywords="from-resolved_105,purejava">
  931. <compile files="SuperIsWeird.java">
  932. <message kind="error" line="9"/>
  933. <message kind="error" line="13"/>
  934. <message kind="error" line="20"/>
  935. <message kind="error" line="21"/>
  936. </compile>
  937. </ajc-test>
  938. <ajc-test dir="pureJava" pr="752"
  939. title="subclass access to enclosing super class private members"
  940. keywords="from-resolved_105,purejava,fail-unimplemented">
  941. <compile files="SubclassAccessToEnclosingSuperClassPrivate.java"/>
  942. <run class="SubclassAccessToEnclosingSuperClassPrivate"/>
  943. </ajc-test>
  944. <ajc-test dir="pureJava" title="various tests of switch bounds"
  945. keywords="from-resolved_106,purejava">
  946. <compile files="SwitchBounds.java"/>
  947. <run class="SwitchBounds"/>
  948. </ajc-test>
  949. <ajc-test dir="new" pr="601"
  950. title="VerifyError if nested sync returning result"
  951. comment="XXX inconsistent behavior?"
  952. keywords="from-resolved_10final,purejava">
  953. <compile files="NestedSyncWithResult.java"/>
  954. <run class="NestedSyncWithResult"/>
  955. </ajc-test>
  956. <ajc-test dir="new" pr="134"
  957. title="import of a class in the default package"
  958. keywords="from-broken14usejavac,purejava">
  959. <compile files="ImportFromUnnamed.java,DeclaredExcs.java"/>
  960. <run class="ImportFromUnnamed"/>
  961. </ajc-test>
  962. <ajc-test dir="pureJava" pr="386"
  963. title="Referencing static interfaces with import statements"
  964. keywords="from-broken14usejavac,purejava">
  965. <compile files="ClassWithStaticInnerInterfaces.java"/>
  966. <compile files="ImportingStaticInnerInterfaces_PR386.java"/>
  967. <run class="ImportingStaticInnerInterfaces_PR386"/>
  968. </ajc-test>
  969. <ajc-test dir="pureJava" pr="386"
  970. title="Referencing static interfaces with import statements stars"
  971. keywords="purejava,from-broken14usejavac">
  972. <compile files="ClassWithStaticInnerInterfaces.java"/>
  973. <compile files="ImportingStaticInnerInterfacesStars_PR386.java"/>
  974. <run class="ImportingStaticInnerInterfacesStars_PR386"/>
  975. </ajc-test>
  976. <ajc-test dir="pureJava" pr="386"
  977. title="Referencing static interfaces with import statements stars 2"
  978. keywords="purejava,from-broken14usejavac">
  979. <compile files="ClassWithStaticInnerInterfaces.java"/>
  980. <compile files="ImportingStaticInnerInterfacesStars2_PR386.java"/>
  981. <run class="ImportingStaticInnerInterfacesStars2_PR386"/>
  982. </ajc-test>
  983. <ajc-test dir="pureJava" pr="386"
  984. title="Referencing static interfaces with import statements stars 3"
  985. keywords="purejava,from-broken14usejavac">
  986. <compile files="ClassWithStaticInnerInterfaces.java"/>
  987. <compile files="ImportingStaticInnerInterfacesStars3_PR386.java"/>
  988. <run class="ImportingStaticInnerInterfacesStars3_PR386"/>
  989. </ajc-test>
  990. <ajc-test dir="pureJava" pr="386"
  991. title="Referencing interfaces with import statements"
  992. keywords="purejava,from-broken14usejavac">
  993. <compile
  994. files="ClassWithInnerInterfaces.java,ImportingInnerInterfaces_PR386.java"/>
  995. <run class="ImportingInnerInterfaces_PR386"/>
  996. </ajc-test>
  997. <ajc-test dir="pureJava" pr="386"
  998. title="Referencing interfaces with import statements stars"
  999. keywords="purejava,from-broken14usejavac">
  1000. <compile
  1001. files="ClassWithInnerInterfaces.java,ImportingInnerInterfacesStars_PR386.java"/>
  1002. <run class="ImportingInnerInterfacesStars_PR386"/>
  1003. </ajc-test>
  1004. <ajc-test dir="pureJava" pr="386"
  1005. title="Referencing interfaces with import statements stars 2"
  1006. keywords="purejava,from-broken14usejavac">
  1007. <compile
  1008. files="ClassWithInnerInterfaces.java,ImportingInnerInterfacesStars2_PR386.java"/>
  1009. <run class="ImportingInnerInterfacesStars2_PR386"/>
  1010. </ajc-test>
  1011. <ajc-test dir="pureJava" pr="386"
  1012. title="Referencing interfaces with import statements stars 3"
  1013. keywords="purejava,from-broken14usejavac">
  1014. <compile
  1015. files="ClassWithInnerInterfaces.java,ImportingInnerInterfacesStars3_PR386.java"/>
  1016. <run class="ImportingInnerInterfacesStars3_PR386"/>
  1017. </ajc-test>
  1018. <ajc-test dir="new/PR862" pr="862"
  1019. title="import any inner from interface implementor"
  1020. keywords="purejava">
  1021. <compile files="pack/ImportInnerFromInterfaceImplementor.java">
  1022. <dir-changes added="pack.ImportInnerFromInterfaceImplementor"/>
  1023. </compile>
  1024. <run class="pack.ImportInnerFromInterfaceImplementor"/>
  1025. </ajc-test>
  1026. <ajc-test dir="pureJava/equalsMethOnStr" pr="214"
  1027. title="equals method on quoted strings" keywords="from-java">
  1028. <compile files="Driver.java"/>
  1029. <run class="Driver"/>
  1030. </ajc-test>
  1031. <ajc-test dir="pureJava/anonInnerClass" pr="294"
  1032. title="anonymous inner class" keywords="from-java">
  1033. <compile files="Driver.java"/>
  1034. <run class="Driver"/>
  1035. </ajc-test>
  1036. <ajc-test dir="pureJava"
  1037. title="parsing of parenthesized 'this' (in returns)" keywords="from-java">
  1038. <compile files="ReturnThis.java"/>
  1039. <run class="ReturnThis"/>
  1040. </ajc-test>
  1041. <ajc-test dir="pureJava" title="Strings are folded and interned correctly"
  1042. keywords="from-java">
  1043. <compile files="StringFold.java"/>
  1044. <run class="StringFold"/>
  1045. </ajc-test>
  1046. <ajc-test dir="pureJava" title="Cast binds tighter than equality tests"
  1047. keywords="from-java">
  1048. <compile files="CastAndBinary.java"/>
  1049. <run class="CastAndBinary"/>
  1050. </ajc-test>
  1051. <ajc-test dir="pureJava" title="Boundary base values can be parsed"
  1052. keywords="from-java">
  1053. <compile files="BoundaryNums.java"/>
  1054. <run class="BoundaryNums"/>
  1055. </ajc-test>
  1056. <ajc-test dir="pureJava"
  1057. title="State is passed correctly across nested annonymous inners"
  1058. keywords="from-java">
  1059. <compile files="NestedInners.java"/>
  1060. <run class="NestedInners"/>
  1061. </ajc-test>
  1062. <ajc-test dir="pureJava"
  1063. title="?: expressions should typecheck in interesting ways"
  1064. keywords="from-java">
  1065. <compile files="TriTestTypecheck.java"/>
  1066. <run class="TriTestTypecheck"/>
  1067. </ajc-test>
  1068. <ajc-test dir="pureJava"
  1069. title="cast expressions should allow casts to/from interfaces at compile-time."
  1070. keywords="from-java">
  1071. <compile files="InterfaceCast.java"/>
  1072. <run class="InterfaceCast"/>
  1073. </ajc-test>
  1074. <ajc-test dir="pureJava"
  1075. title="various anonymous inner classes plus super types tests"
  1076. keywords="from-java">
  1077. <compile files="InnerSuper.java"/>
  1078. <run class="InnerSuper"/>
  1079. </ajc-test>
  1080. <ajc-test dir="pureJava" title="Various comment syntaxes should be handled."
  1081. keywords="from-java">
  1082. <compile files="CommentSyntax.java"/>
  1083. <run class="CommentSyntax"/>
  1084. </ajc-test>
  1085. <ajc-test dir="pureJava/abstractInner"
  1086. title="Abstract inner classes across package boundaries"
  1087. keywords="from-java">
  1088. <compile files="C.java,pkg/A.java"/>
  1089. <run class="C"/>
  1090. </ajc-test>
  1091. <ajc-test dir="pureJava"
  1092. title="inner classes accessing outers and some more inner class names"
  1093. keywords="from-java">
  1094. <compile files="InnerAccess.java"/>
  1095. <run class="InnerAccess"/>
  1096. </ajc-test>
  1097. <ajc-test dir="pureJava"
  1098. title="remember to cast folded values down to the proper types."
  1099. keywords="from-java">
  1100. <compile files="CastingFoldedValues.java"/>
  1101. <run class="CastingFoldedValues"/>
  1102. </ajc-test>
  1103. <ajc-test dir="pureJava"
  1104. title="inner classes can be built using protected constructors in super"
  1105. keywords="from-java">
  1106. <compile files="VariousConstructors.java"/>
  1107. <run class="VariousConstructors"/>
  1108. </ajc-test>
  1109. <ajc-test dir="pureJava" pr="401"
  1110. title="The current AspectJ compiler cannot parse qualified superclass constructor invocations"
  1111. keywords="from-java">
  1112. <compile files="QualifiedSuperClassConstructorInvocations_PR401.java"/>
  1113. <run class="QualifiedSuperClassConstructorInvocations_PR401"/>
  1114. </ajc-test>
  1115. <ajc-test dir="pureJava" pr="421"
  1116. title="More thourough test of static members using full names"
  1117. keywords="from-java">
  1118. <compile
  1119. files="Statics.java,StaticMembers_PR421.java,p1/C1.java,p1/P1Statics.java,p1/subp1/SubC1.java,p1/p2/P1P2Statics.java"/>
  1120. <run class="StaticMembers_PR421"/>
  1121. </ajc-test>
  1122. <ajc-test dir="pureJava" pr="421"
  1123. title="More thourough test of static members using imports"
  1124. keywords="from-java">
  1125. <compile
  1126. files="Statics.java,StaticMembersImports_PR421.java,p1/C1.java,p1/P1Statics.java,p1/subp1/SubC1.java,p1/p2/P1P2Statics.java"/>
  1127. <run class="StaticMembersImports_PR421"/>
  1128. </ajc-test>
  1129. <ajc-test dir="pureJava/conflictingPackageNames" pr="437"
  1130. title="Looking in class Java for java.lang.String WITH separate compilation"
  1131. keywords="from-java">
  1132. <compile files="Java.java"/>
  1133. <compile files="Main.java"/>
  1134. <run class="Main"/>
  1135. </ajc-test>
  1136. <ajc-test dir="pureJava/conflictingPackageNames" pr="437"
  1137. title="Looking in class Java for java.lang.String WITHOUT separate compilation"
  1138. keywords="from-java">
  1139. <compile files="Main.java,Java.java"/>
  1140. <run class="Main"/>
  1141. </ajc-test>
  1142. <ajc-test dir="pureJava/conflictingPackageNamesWithPackages" pr="437"
  1143. title="Looking in class Java for java.lang.String WITH separate compilation with packages"
  1144. keywords="from-java">
  1145. <compile files="Java.java"/>
  1146. <compile files="Main.java"/>
  1147. <run class="conflictingPackageNamesWithPackages.Main"/>
  1148. </ajc-test>
  1149. <ajc-test dir="pureJava/conflictingPackageNamesWithPackages" pr="437"
  1150. title="Looking in class Java for java.lang.String WITHOUT separate compilation with packages"
  1151. keywords="from-java">
  1152. <compile files="Main.java,Java.java"/>
  1153. <run class="conflictingPackageNamesWithPackages.Main"/>
  1154. </ajc-test>
  1155. <ajc-test dir="pureJava" title="Testing ternary operations."
  1156. keywords="from-java">
  1157. <compile files="MultiTernaryOps.java"/>
  1158. <run class="MultiTernaryOps"/>
  1159. </ajc-test>
  1160. <ajc-test dir="pureJava" title="Lifting locals in switch statements."
  1161. keywords="from-java">
  1162. <compile files="SwitchStmtLocals.java"/>
  1163. <run class="SwitchStmtLocals"/>
  1164. </ajc-test>
  1165. <ajc-test dir="pureJava"
  1166. title="Getting confused when looking up method signatures"
  1167. keywords="from-java">
  1168. <compile files="MethodSigs.java"/>
  1169. <run class="MethodSigs"/>
  1170. </ajc-test>
  1171. <ajc-test dir="pureJava"
  1172. title="Not recognizing the chars '\0', '\1', '\2', '\3', '\4', '\5', '\6', '\7'"
  1173. keywords="from-java">
  1174. <compile files="Chars.java"/>
  1175. <run class="Chars"/>
  1176. </ajc-test>
  1177. <ajc-test dir="pureJava"
  1178. title="Test chars '\0', '\1', '\2', '\3', '\4', '\5', '\6', '\7' with a case statement"
  1179. keywords="from-java">
  1180. <compile files="CaseClauses.java"/>
  1181. <run class="CaseClauses"/>
  1182. </ajc-test>
  1183. <ajc-test dir="pureJava"
  1184. title="Checking character values with all the unicode chars."
  1185. keywords="from-java">
  1186. <compile files="CharsUnicode.java"/>
  1187. <run class="CharsUnicode"/>
  1188. </ajc-test>
  1189. <ajc-test dir="pureJava"
  1190. title="Trouble finding methods with the same name and different parameter types"
  1191. keywords="from-java">
  1192. <compile files="MethodsWithTheSameName.java"/>
  1193. <run class="MethodsWithTheSameName"/>
  1194. </ajc-test>
  1195. <ajc-test dir="pureJava"
  1196. title="Binding non-public static inner classes of interfaces in other packages"
  1197. keywords="from-java">
  1198. <compile
  1199. files="StaticClassesInInterfaces.java,anotherPackage/AnotherPackageInterface.java"/>
  1200. <run class="StaticClassesInInterfaces"/>
  1201. </ajc-test>
  1202. <ajc-test dir="pureJava"
  1203. title="Not recognizing the octal chars '\0', '\1', '\2', '\3', '\4', '\5', '\6', '\7'"
  1204. keywords="from-java">
  1205. <compile files="OctalChars.java"/>
  1206. <run class="OctalChars"/>
  1207. </ajc-test>
  1208. <ajc-test dir="pureJava"
  1209. title="Members with the same name as their package cause confusion with fully-qualified names."
  1210. keywords="from-java">
  1211. <compile files="samenames/Main.java,samenames/Other.java"/>
  1212. <run class="samenames.Main"/>
  1213. </ajc-test>
  1214. <ajc-test dir="pureJava"
  1215. title="Fully-qual'ed names with same start as variable names"
  1216. keywords="from-java">
  1217. <compile files="FullNames.java"/>
  1218. <run class="FullNames"/>
  1219. </ajc-test>
  1220. <ajc-test dir="pureJava"
  1221. title="Fully qualifying inner classes within annonymous classes causes problems."
  1222. keywords="from-java">
  1223. <compile files="InnerClassesInAnnonymousClasses.java"/>
  1224. <run class="InnerClassesInAnnonymousClasses"/>
  1225. </ajc-test>
  1226. <ajc-test dir="pureJava"
  1227. title="Calls to methods in outer annonymous classes are being qual's incorrectly with 'this'"
  1228. keywords="from-java">
  1229. <compile files="MisplacedThisInAnnonymousInnerClasses.java"/>
  1230. <run class="MisplacedThisInAnnonymousInnerClasses"/>
  1231. </ajc-test>
  1232. <ajc-test dir="pureJava/innersFromSourceAndBytecode"
  1233. title="Reading inner classes from source and bytecode (1) -- was failing"
  1234. keywords="from-java">
  1235. <compile files="C.java,D.java"/>
  1236. <compile files="Main.java,C.java"
  1237. includeClassesDir="true"/>
  1238. <run class="Main"/>
  1239. </ajc-test>
  1240. <ajc-test dir="pureJava/innersFromSourceAndBytecode"
  1241. title="Reading inner classes from source and bytecode (2)"
  1242. keywords="from-java">
  1243. <compile files="Main.java,C.java,D.java"/>
  1244. <run class="Main"/>
  1245. </ajc-test>
  1246. <ajc-test dir="pureJava/innersFromSourceAndBytecode"
  1247. title="Reading inner classes from source and bytecode (3)"
  1248. keywords="from-java">
  1249. <compile files="C.java,D.java"/>
  1250. <compile files="Main.java,C.java,D.java"
  1251. includeClassesDir="true"/>
  1252. <run class="Main"/>
  1253. </ajc-test>
  1254. <ajc-test dir="pureJava"
  1255. title="Not lifting types correctly with bytes and shorts with ternary ops"
  1256. keywords="from-java">
  1257. <compile files="TernaryPrimitiveOps.java"/>
  1258. <run class="TernaryPrimitiveOps"/>
  1259. </ajc-test>
  1260. <ajc-test dir="pureJava"
  1261. title="Not looking up methods inside of anonymous declarations correctly."
  1262. keywords="from-java">
  1263. <compile files="AnonymousMethodLookup.java"/>
  1264. <run class="AnonymousMethodLookup"/>
  1265. </ajc-test>
  1266. <ajc-test dir="pureJava"
  1267. title="Resolving extended classes with array parameters"
  1268. keywords="from-java">
  1269. <compile files="ResolvingArrayParameters.java"/>
  1270. <run class="ResolvingArrayParameters"/>
  1271. </ajc-test>
  1272. <ajc-test dir="pureJava"
  1273. title="Assignments as second arguments in ternary operators."
  1274. keywords="from-java">
  1275. <compile files="TernaryAssignments.java"/>
  1276. <run class="TernaryAssignments"/>
  1277. </ajc-test>
  1278. <ajc-test dir="pureJava" title="Conflicting inner classes with interfaces."
  1279. keywords="from-java">
  1280. <compile files="PR413.java"/>
  1281. <run class="PR413"/>
  1282. </ajc-test>
  1283. <ajc-test dir="pureJava" title="confusions of casts and parens"
  1284. keywords="from-java">
  1285. <compile files="CastVsParen.java"/>
  1286. <run class="CastVsParen"/>
  1287. </ajc-test>
  1288. <ajc-test dir="pureJava"
  1289. title="default constructors seen by inner classes subtyping outers"
  1290. keywords="from-java">
  1291. <compile files="DefaultConsAndInner.java"/>
  1292. <run class="DefaultConsAndInner"/>
  1293. </ajc-test>
  1294. <ajc-test dir="pureJava"
  1295. title="folding fields set to anonymous instances containing self-references"
  1296. keywords="from-java">
  1297. <compile files="AnonFolding.java"/>
  1298. <run class="AnonFolding"/>
  1299. </ajc-test>
  1300. <ajc-test dir="pureJava"
  1301. title="finally at the end of a method that needs to return"
  1302. keywords="from-java">
  1303. <compile files="FinallyAndReturns.java"/>
  1304. <run class="FinallyAndReturns"/>
  1305. </ajc-test>
  1306. <ajc-test dir="pureJava"
  1307. title="overriding methods from object in interfaces and multiple-inheritance"
  1308. keywords="from-java">
  1309. <compile files="InterfaceAndObject.java"/>
  1310. <run class="InterfaceAndObject"/>
  1311. </ajc-test>
  1312. <ajc-test dir="pureJava"
  1313. title="private fields in an outer class accessed by an inner which also extends the outer"
  1314. keywords="from-java">
  1315. <compile files="PrivateFields.java"/>
  1316. <run class="PrivateFields"/>
  1317. </ajc-test>
  1318. <ajc-test dir="pureJava"
  1319. title="breaking out of a labeled block inside of an if"
  1320. keywords="from-java">
  1321. <compile files="Breaks.java"/>
  1322. <run class="Breaks"/>
  1323. </ajc-test>
  1324. <ajc-test dir="pureJava"
  1325. title="abstractifying a method and getting it back through super"
  1326. keywords="from-java">
  1327. <compile files="Abstracts.java"/>
  1328. <run class="Abstracts"/>
  1329. </ajc-test>
  1330. <ajc-test dir="pureJava"
  1331. title="Packages and static classes with the same name produce compile errors."
  1332. keywords="from-java">
  1333. <compile files="PackagesAndStaticClassesWithTheSameName.java"/>
  1334. <run class="PackagesAndStaticClassesWithTheSameName"/>
  1335. </ajc-test>
  1336. <ajc-test dir="pureJava/innerTypeModifiers"
  1337. title="Inner types must generate classfiles with only Public/Default access flags."
  1338. keywords="from-java">
  1339. <compile files="pkg1/Main.java,pkg2/Foo.java"/>
  1340. <run class="pkg1.Main"/>
  1341. </ajc-test>
  1342. <ajc-test dir="pureJava/innerDefaultConstructors"
  1343. title="Default constructors have same access as their enclosing type"
  1344. keywords="from-java">
  1345. <compile files="pkg1/Main.java,pkg2/Foo.java">
  1346. <message kind="error" line="6"/>
  1347. </compile>
  1348. </ajc-test>
  1349. <ajc-test dir="pureJava"
  1350. title="Returning primitive values matching method return type (minimal)"
  1351. keywords="from-java">
  1352. <compile files="ReturnTypes.java"/>
  1353. <run class="ReturnTypes"/>
  1354. </ajc-test>
  1355. <ajc-test dir="pureJava" title="Flow analysis and if(true)"
  1356. keywords="from-java">
  1357. <compile files="Flow.java"/>
  1358. <run class="Flow"/>
  1359. </ajc-test>
  1360. <ajc-test dir="pureJava"
  1361. title="packages and generated inner types (for I.class)"
  1362. keywords="from-java">
  1363. <compile files="InterfaceAndClass.java"/>
  1364. <run class="p.InterfaceAndClass"/>
  1365. </ajc-test>
  1366. <ajc-test dir="pureJava" title="A.this exprs match by exact type matching"
  1367. keywords="from-java">
  1368. <compile files="QualifiedThisMatchesExactly.java">
  1369. <message kind="error" line="14"/>
  1370. </compile>
  1371. </ajc-test>
  1372. <ajc-test dir="pureJava"
  1373. title="Implicit this for new inner instance must be avaliable"
  1374. keywords="from-java">
  1375. <compile files="ImplicitThisMissing.java">
  1376. <message kind="error" line="4"/>
  1377. </compile>
  1378. </ajc-test>
  1379. <ajc-test dir="pureJava"
  1380. title="Inners can reference protected fields of their outer's super."
  1381. keywords="from-java">
  1382. <compile
  1383. files="protectedFieldRefInInner/Main.java,protectedFieldRefInInner/p1/C.java"/>
  1384. <run class="protectedFieldRefInInner.Main"/>
  1385. </ajc-test>
  1386. <ajc-test dir="pureJava"
  1387. title="Primitives that special case for a constant arm should work"
  1388. keywords="from-java">
  1389. <compile files="OneArmedPrimitiveTests.java"/>
  1390. <run class="OneArmedPrimitiveTests"/>
  1391. </ajc-test>
  1392. <ajc-test dir="pureJava" title="Parenthesized true and false don't parse"
  1393. keywords="from-java">
  1394. <compile files="ParenKeywords.java"/>
  1395. <run class="ParenKeywords"/>
  1396. </ajc-test>
  1397. <ajc-test dir="pureJava"
  1398. title="Field sets to public fields of private fields of enclosing types"
  1399. keywords="from-java">
  1400. <compile files="InnerFieldRef.java"/>
  1401. <run class="InnerFieldRef"/>
  1402. </ajc-test>
  1403. <ajc-test dir="pureJava"
  1404. title="Constant values should be stored with the correct type of their fields"
  1405. keywords="from-java">
  1406. <compile files="ConstantValueConversion.java"/>
  1407. <run class="ConstantValueConversion"/>
  1408. </ajc-test>
  1409. <ajc-test dir="pureJava"
  1410. title="Local variables in initializers should not be treated as blank final fields"
  1411. keywords="from-java">
  1412. <compile files="LocalInitializerVariableNotBlank.java"/>
  1413. <run class="LocalInitializerVariableNotBlank"/>
  1414. </ajc-test>
  1415. <ajc-test dir="pureJava"
  1416. title="Binops aren't allowed as update stmts in for loops"
  1417. keywords="from-java">
  1418. <compile files="NonStmtInFor.java">
  1419. <message kind="error" line="3"/>
  1420. </compile>
  1421. </ajc-test>
  1422. <ajc-test dir="pureJava"
  1423. title="Can't avoid doing division in case of div by zero"
  1424. keywords="from-java">
  1425. <compile files="DivOpMustHappen.java"/>
  1426. <run class="DivOpMustHappen"/>
  1427. </ajc-test>
  1428. <ajc-test dir="pureJava"
  1429. title="Testing frames w/greater than FF locals and 7F incs (i.e., WIDE instruction)"
  1430. keywords="from-java">
  1431. <compile files="BigFrameTest.java"/>
  1432. <run class="BigFrameTest"/>
  1433. </ajc-test>
  1434. <ajc-test dir="pureJava" title="correct numeric literals"
  1435. keywords="from-java">
  1436. <compile files="LiteralsCp.java"/>
  1437. <run class="LiteralsCp"/>
  1438. </ajc-test>
  1439. <ajc-test dir="pureJava" title="invalid numeric literals"
  1440. keywords="from-java">
  1441. <compile files="LiteralsCf.java">
  1442. <message kind="error" line="8"/>
  1443. <message kind="error" line="9"/>
  1444. <message kind="error" line="10"/>
  1445. <message kind="error" line="11"/>
  1446. <message kind="error" line="12"/>
  1447. <message kind="error" line="17"/>
  1448. <message kind="error" line="18"/>
  1449. <message kind="error" line="19"/>
  1450. <message kind="error" line="20"/>
  1451. <message kind="error" line="21"/>
  1452. <message kind="error" line="22"/>
  1453. <message kind="error" line="23"/>
  1454. <message kind="error" line="25"/>
  1455. <message kind="error" line="27"/>
  1456. <message kind="error" line="28"/>
  1457. <message kind="error" line="29"/>
  1458. <message kind="error" line="30"/>
  1459. <message kind="error" line="32"/>
  1460. </compile>
  1461. </ajc-test>
  1462. <ajc-test dir="pureJava" pr="538"
  1463. title="inner types can't have the same simple name as an enclosing type"
  1464. keywords="from-java">
  1465. <compile files="InnerNameConflictsCf.java">
  1466. <message kind="error" line="9"/>
  1467. <message kind="error" line="14"/>
  1468. <message kind="error" line="20"/>
  1469. <message kind="error" line="21"/>
  1470. </compile>
  1471. </ajc-test>
  1472. <ajc-test dir="pureJava"
  1473. title="test the unops and binops with various values" keywords="from-java">
  1474. <compile files="BigOps.java"/>
  1475. <run class="BigOps"/>
  1476. </ajc-test>
  1477. <ajc-test dir="pureJava"
  1478. title="test + and += for strings and variously typed values"
  1479. keywords="from-java">
  1480. <compile files="BigString.java"/>
  1481. <run class="BigString"/>
  1482. </ajc-test>
  1483. <ajc-test dir="pureJava" title="test try/catch/finally statements"
  1484. keywords="from-java">
  1485. <compile files="TryCatchFinally.java"/>
  1486. <run class="TryCatchFinally"/>
  1487. </ajc-test>
  1488. <ajc-test dir="pureJava" pr="547"
  1489. title="local types can be bound in the signatures of other local types"
  1490. keywords="from-resolved_10rc3,from-java">
  1491. <compile files="LocalInners.java"/>
  1492. <run class="LocalInners"/>
  1493. </ajc-test>
  1494. <ajc-test dir="pureJava/nameConflicts"
  1495. title="type and package name conflicts are resolved happily (2)"
  1496. keywords="from-java">
  1497. <compile files="p1/Main2.java,p1/p2/Foo.java"/>
  1498. <run class="p1.Main2"/>
  1499. </ajc-test>
  1500. <ajc-test dir="pureJava"
  1501. title="try statements work sorta like scoped items for exception flow control"
  1502. keywords="from-java">
  1503. <compile files="TryWorksLikeEnvironment.java"/>
  1504. <run class="TryWorksLikeEnvironment"/>
  1505. </ajc-test>
  1506. <ajc-test dir="pureJava"
  1507. title="qualified this must work exactly, not based on subtypes"
  1508. keywords="from-java">
  1509. <compile files="QualifiedThisExactness.java">
  1510. <message kind="error" line="6"/>
  1511. </compile>
  1512. </ajc-test>
  1513. <ajc-test dir="pureJava"
  1514. title="nested finally blocks have interesting frame location problems"
  1515. keywords="from-java">
  1516. <compile files="NestedFinally.java"/>
  1517. <run class="NestedFinally"/>
  1518. </ajc-test>
  1519. <ajc-test dir="pureJava" pr="601"
  1520. title="nested synchronized blocks have interesting frame location problems"
  1521. keywords="from-java">
  1522. <compile files="NestedSynchronized.java"/>
  1523. <run class="NestedSynchronized"/>
  1524. </ajc-test>
  1525. <ajc-test dir="pureJava" title="anonymous inner classes with inner types"
  1526. keywords="from-java">
  1527. <compile files="AnonymousWithInner.java"/>
  1528. <run class="AnonymousWithInner"/>
  1529. </ajc-test>
  1530. <ajc-test dir="pureJava" pr="651" title="qualified super call expr"
  1531. keywords="from-java">
  1532. <compile files="QualifiedSuperCall.java"/>
  1533. <run class="QualifiedSuperCall"/>
  1534. </ajc-test>
  1535. <ajc-test dir="pureJava" pr="680"
  1536. title="interfaces with non-explicitly static inner classes"
  1537. keywords="from-java">
  1538. <compile files="InterfaceAndInnerHelper.java"/>
  1539. <compile files="InterfaceAndInner.java"
  1540. includeClassesDir="true"/>
  1541. <run class="InterfaceAndInner"/>
  1542. </ajc-test>
  1543. <ajc-test dir="pureJava" title="Operands work correctly"
  1544. keywords="from-bigjava">
  1545. <compile files="Ops.java"/>
  1546. <run class="Ops"/>
  1547. </ajc-test>
  1548. <ajc-test dir="pureJava" title="simple tests of throws and for stmt typing"
  1549. keywords="from-errors">
  1550. <compile files="SimpleSpec.java">
  1551. <message kind="error" line="4"/>
  1552. <message kind="error" line="7"/>
  1553. </compile>
  1554. </ajc-test>
  1555. <ajc-test dir="pureJava" title="test for not folding circular constants"
  1556. keywords="from-errors">
  1557. <compile files="CircularFolding.java">
  1558. <message kind="error" line="6"/>
  1559. <message kind="error" line="7"/>
  1560. <message kind="error" line="8"/>
  1561. </compile>
  1562. </ajc-test>
  1563. <ajc-test dir="pureJava" title="continue targets must be continuable"
  1564. keywords="from-errors">
  1565. <compile files="BadContinueTarget.java">
  1566. <message kind="error" line="6"/>
  1567. </compile>
  1568. </ajc-test>
  1569. <ajc-test dir="pureJava"
  1570. title="qualified this to non-inner should be caught"
  1571. keywords="from-errors">
  1572. <compile files="BadQualifiedNew.java">
  1573. <message kind="error" line="4"/>
  1574. </compile>
  1575. </ajc-test>
  1576. <ajc-test dir="new"
  1577. title="Cannot bind a name." keywords="from-resolved_10x,purejava">
  1578. <compile files="CannotReferenceSuper.java"/>
  1579. <run class="CannotReferenceSuper"/>
  1580. </ajc-test>
  1581. <ajc-test dir="pureJava" pr="721"
  1582. title="interface declaration not permitted in local method scope"
  1583. keywords="from-resolved_105">
  1584. <compile files="LocalInterfaceCE.java">
  1585. <message kind="error" line="5"/>
  1586. <message kind="error" line="8"/>
  1587. <message kind="error" line="11"/>
  1588. <message kind="error" line="15"/>
  1589. </compile>
  1590. </ajc-test>
  1591. <ajc-test dir="pureJava"
  1592. title="Locals inside other locals, ordering of processing [eh]"
  1593. keywords="from-resolved_105">
  1594. <compile files="LocalInners2.java"/>
  1595. <run class="LocalInners2"/>
  1596. </ajc-test>
  1597. <ajc-test dir="pureJava" pr="866"
  1598. title="non-constant static final fields marked as final in .class">
  1599. <compile files="FinalStaticField.java"/>
  1600. <run class="FinalStaticField"/>
  1601. </ajc-test>
  1602. <ajc-test dir="new" title="handle multiple nested inner classes"
  1603. keywords="from-java">
  1604. <compile files="InnerHell.java"/>
  1605. <run class="InnerHell"/>
  1606. </ajc-test>
  1607. <ajc-test dir="new/volatileKeyword" pr="151"
  1608. title="advice on a static method" keywords="from-java">
  1609. <compile files="Driver.java"/>
  1610. <run class="Driver"/>
  1611. </ajc-test>
  1612. <ajc-test dir="new/innerConsSyntax" pr="192"
  1613. title="inner constructor syntax causes compile error" keywords="from-java">
  1614. <compile files="Driver.java"/>
  1615. <run class="Driver"/>
  1616. </ajc-test>
  1617. <ajc-test dir="new/paramWidening" pr="195"
  1618. title="widening of method parameters to match javac" keywords="from-java">
  1619. <compile files="Driver.java"/>
  1620. <run class="Driver"/>
  1621. </ajc-test>
  1622. <ajc-test dir="new" pr="313"
  1623. title="parenthesized string literals matching primitive type names"
  1624. keywords="from-java">
  1625. <compile files="ParenPrimitive.java"/>
  1626. <run class="ParenPrimitive"/>
  1627. </ajc-test>
  1628. <ajc-test dir="new" title="simple type coercions tests" keywords="from-java">
  1629. <compile files="TypeCoercions.java"/>
  1630. <run class="TypeCoercions"/>
  1631. </ajc-test>
  1632. <ajc-test dir="new" title="order of type declarations shouldn't matter"
  1633. keywords="from-java">
  1634. <compile files="OrderOfTypes.java"/>
  1635. <run class="OrderOfTypes"/>
  1636. </ajc-test>
  1637. <ajc-test dir="new" title="Scanner non recognizing strictfp."
  1638. keywords="from-java">
  1639. <compile files="StrictFp.java"/>
  1640. <run class="StrictFp"/>
  1641. </ajc-test>
  1642. <ajc-test dir="new"
  1643. title="Crashes when a lot of zeros are in front of a double variable [!!! purejava]"
  1644. keywords="from-java">
  1645. <compile files="Zeros.java"/>
  1646. <run class="Zeros"/>
  1647. </ajc-test>
  1648. </suite>