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.

java14.xml 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <!-- Tests requiring JDK 1.4 or above -->
  3. <suite>
  4. <ajc-test dir="pureJava" title="assert flow"
  5. keywords="from-14tests,purejava">
  6. <compile options="-source,1.4" files="AssertsCF.java">
  7. <message kind="error" line="8"/>
  8. <message kind="error" line="11"/>
  9. </compile>
  10. </ajc-test>
  11. <ajc-test dir="pureJava" title="assert flow - 2"
  12. keywords="from-14tests,purejava">
  13. <compile options="-source,1.4" files="AssertsCF2.java">
  14. </compile>
  15. </ajc-test>
  16. <ajc-test dir="pureJava" title="assert typing"
  17. keywords="from-14tests,purejava,fail-publicType">
  18. <compile options="-source,1.4" files="AssertsCF1.java">
  19. <message kind="error" line="5"/>
  20. </compile>
  21. </ajc-test>
  22. <ajc-test dir="pureJava" title="compiling asserts in methods"
  23. keywords="from-14tests,purejava">
  24. <compile options="-source,1.4" files="AssertInMethod.java"/>
  25. <run class="AssertInMethod" vm="1.4"/>
  26. </ajc-test>
  27. <ajc-test dir="pureJava" title="asserts" keywords="from-14tests">
  28. <compile options="-source,1.4" files="Asserts.java"/>
  29. <run class="Asserts" vm="1.4"/>
  30. </ajc-test>
  31. <ajc-test dir="pureJava" pr="725"
  32. title="asserts in aspect and declared methods [requires 1.4]"
  33. keywords="from-14tests" comment="not pure java!">
  34. <compile options="-source,1.4"
  35. files="IntroducedAssertion.java"/>
  36. <run class="IntroducedAssertion" vm="1.4"/>
  37. </ajc-test>
  38. <!-- This test case requires bytecode generated according to the declaring type
  39. rules in JLS 2nd edition. -1.4 must be passed to the eclipse compiler for
  40. this behavior. -->
  41. <ajc-test dir="new"
  42. title="Does the matrix coverage thing for the new method signatures"
  43. keywords="from-resolved_10x">
  44. <compile files="MethodSignatures.java" options="-1.4,-Xlint:ignore"/>
  45. <run class="MethodSignatures" vm="1.4"/>
  46. </ajc-test>
  47. <!-- This test case requires bytecode generated according to the declaring type
  48. rules in JLS 2nd edition. -1.4 must be passed to the eclipse compiler for
  49. this behavior. -->
  50. <ajc-test dir="new" title="correct types of parameters at call-sites"
  51. keywords="from-resolved_10x">
  52. <compile files="CallTypes.java" options="-1.4,-Xlint:ignore"/>
  53. <run class="CallTypes" vm="1.4"/>
  54. </ajc-test>
  55. <!-- This test case requires bytecode generated according to the declaring type
  56. rules in JLS 2nd edition. -1.4 must be passed to the eclipse compiler for
  57. this behavior. That means that this case will only work under 1.4. -->
  58. <ajc-test dir="new"
  59. title="target type matching with messy interface hierarchies"
  60. keywords="from-resolved_10x">
  61. <compile files="CallTypesI.java" options="-1.4,-Xlint:ignore"/>
  62. <run class="CallTypesI" vm="1.4"/>
  63. </ajc-test>
  64. <ajc-test dir="new" title="assert tests in introduction [requires 1.4]"
  65. keywords="from-14tests,fail-unimplemented">
  66. <compile options="-source,1.4" files="AssertInIntro.java"/>
  67. <run class="AssertInIntro" vm="1.4"/>
  68. </ajc-test>
  69. <ajc-test dir="base/test131"
  70. title="various forms of package name pattern matching work"
  71. keywords="from-broken14usejavac">
  72. <compile files="Driver.java,p1/C1.java,p1/p2/C2.java" />
  73. <run class="Driver"/>
  74. </ajc-test>
  75. <ajc-test dir="new" pr="657"
  76. title="assert statement in advice coverage [requires 1.4]"
  77. keywords="from-14tests,fail-in-eclipse">
  78. <compile options="-source,1.4" files="AssertInAdvice.java"/>
  79. <run class="AssertInAdvice" vm="1.4"/>
  80. </ajc-test>
  81. <ajc-test dir="new" pr="657"
  82. title="assert statement in advice [requires 1.4]"
  83. keywords="from-14tests,fail-in-eclipse">
  84. <compile options="-source,1.4" files="AssertInAdviceBug.java"/>
  85. <run class="AssertInAdviceBug" vm="1.4"/>
  86. </ajc-test>
  87. <ajc-test dir="bugs" pr="28703" title="assert and pertarget crashes compiler">
  88. <compile files="EnsureOverriding.java" options="-source,1.4"/>
  89. <run class="EnsureOverriding" vm="1.4"/>
  90. </ajc-test>
  91. <ajc-test dir="bugs/interSpecials" title="testing that assert works like .class"
  92. pr="36110">
  93. <compile files="p1/C.java,p2/A2.java" options="-source,1.4"/>
  94. <run class="p2.A2" vm="1.4"/>
  95. </ajc-test>
  96. <ajc-test dir="bugs/jpOptimization"
  97. pr="45441"
  98. title="JoinPoint Optimization when targetting 1.4">
  99. <compile
  100. files="de/test/MyMain.java,
  101. de/test/MyAspect.java"
  102. options="-1.4"/>
  103. <run class="de.test.MyMain"/>
  104. </ajc-test>
  105. <ajc-test dir="bugs"
  106. title="XLint warning for call PCD's using subtype of defining type (-1.4 -Xlint:ignore)"
  107. pr="41952"
  108. >
  109. <compile
  110. options="-Xlint:ignore,-1.4"
  111. files="DeclaringTypeWarning.java" >
  112. <message kind="warning" line="12"/>
  113. </compile>
  114. </ajc-test>
  115. <ajc-test dir="bugs"
  116. title="XLint warning for call PCD's using subtype of defining type (-1.4)"
  117. pr="41952"
  118. >
  119. <compile
  120. options="-1.4"
  121. files="DeclaringTypeWarning.java" >
  122. <message kind="warning" line="6" text="declaring type">
  123. <source line="14" file="DeclaringTypeWarning.java"/>
  124. </message>
  125. <message kind="warning" line="12" text="declare warning">
  126. <source line="19" file="DeclaringTypeWarning.java"/>
  127. </message>
  128. </compile>
  129. </ajc-test>
  130. <ajc-test dir="bugs" pr="39711"
  131. title="Class Literals as non final fields (also assert, and this$0)">
  132. <compile files="ClassLiteralField.java" options="-source,1.4"/>
  133. <run vm="1.4" class="ClassLiteralField"/>
  134. </ajc-test>
  135. </suite>