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-tests.xml 67KB

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