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.

ajc170.xml 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs170/language" title="diamond 1">
  4. <compile files="Diamond.java" options="-1.5">
  5. <message kind="error" line="11" text="'&lt;&gt;' operator is not allowed for source level below 1.7"/>
  6. </compile>
  7. </ajc-test>
  8. <ajc-test dir="bugs170/language" title="diamond 2">
  9. <compile files="Diamond.java" options="-1.7">
  10. </compile>
  11. </ajc-test>
  12. <ajc-test dir="bugs170/language" title="diamond itd 1">
  13. <compile files="DiamondITD.java" options="-1.7">
  14. </compile>
  15. </ajc-test>
  16. <ajc-test dir="bugs170/language" title="literals 1">
  17. <compile files="Literals.java" options="-1.5">
  18. <message kind="error" line="8" text="Underscores can only be used with source level 1.7 or greater"/>
  19. </compile>
  20. </ajc-test>
  21. <ajc-test dir="bugs170/language" title="literals 2">
  22. <compile files="Literals.java" options="-1.7">
  23. </compile>
  24. </ajc-test>
  25. <ajc-test dir="bugs170/language" title="literals itd 1">
  26. <compile files="LiteralsITD.java" options="-1.7">
  27. </compile>
  28. </ajc-test>
  29. <ajc-test dir="bugs170/language" title="string switch 1">
  30. <compile files="StringSwitch.java" options="-1.5">
  31. <message kind="error" line="9" text="Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum constants are permitted"/>
  32. </compile>
  33. </ajc-test>
  34. <ajc-test dir="bugs170/language" title="string switch 2">
  35. <compile files="StringSwitch.java" options="-1.7">
  36. </compile>
  37. </ajc-test>
  38. <ajc-test dir="bugs170/language" title="multi catch 1">
  39. <compile files="MultiCatch.java" options="-1.5">
  40. <message kind="error" line="6" text="Multi-catch parameters are not allowed for source level below 1.7"/>
  41. </compile>
  42. </ajc-test>
  43. <ajc-test dir="bugs170/language" title="multi catch 2">
  44. <compile files="MultiCatch.java" options="-1.7">
  45. </compile>
  46. </ajc-test>
  47. <ajc-test dir="bugs170/language" title="multi catch with handler 1">
  48. <compile files="MultiCatchWithHandler.java" options="-1.7">
  49. </compile>
  50. </ajc-test>
  51. <ajc-test dir="bugs170/language" title="multi catch with handler 2">
  52. <compile files="MultiCatchWithHandler2.java" options="-1.7">
  53. </compile>
  54. <run class="MultiCatchWithHandler2"></run>
  55. </ajc-test>
  56. <ajc-test dir="bugs170/sanity" title="sanity 1">
  57. <compile files="DeclareAtType.java" options="-1.5">
  58. </compile>
  59. </ajc-test>
  60. <ajc-test dir="bugs170/pr363979" title="missing impl">
  61. <compile files="Example.java" options="-1.5"/>
  62. <run class="Example">
  63. <stdout>
  64. <line text="yes"/>
  65. </stdout>
  66. </run>
  67. </ajc-test>
  68. <ajc-test dir="bugs170/pr363979" title="missing impl 2">
  69. <compile files="Example2.java" options="-1.5"/>
  70. <run class="Example2">
  71. <stdout>
  72. <line text="yes"/>
  73. </stdout>
  74. </run>
  75. </ajc-test>
  76. <ajc-test dir="bugs170/pr364380" title="stackoverflow">
  77. <compile files="X.aj" options="-1.5" outjar="foo.jar"/>
  78. <compile files="C.java" options="-1.5" inpath="foo.jar">
  79. <message kind="warning" text="An advice already exists for setting an owner"/>
  80. </compile>
  81. </ajc-test>
  82. </suite>