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.

ajc196.xml 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs196/558995" title="early resolution of supporting interfaces">
  4. <compile options="-14" files="foo/SynchronizedStaticAspect.aj foo/SynchronizedAspect.aj foo/SynchronizedTest.java foo/Synchronized.java"/>
  5. </ajc-test>
  6. <!-- switch now in Java14 and doesn't need -enable-preview flag -->
  7. <ajc-test dir="features193" vm="14" title="switch 1">
  8. <compile files="Switch1.java" options="-14">
  9. </compile>
  10. <run class="Switch1">
  11. <stdout>
  12. <line text="0" />
  13. <line text="1" />
  14. <line text="2" />
  15. <line text="3" />
  16. </stdout>
  17. </run>
  18. </ajc-test>
  19. <ajc-test dir="features193" vm="14" title="switch 2">
  20. <compile files="Switch2.java" options="-source 14">
  21. </compile>
  22. <run class="Switch2" vmargs="">
  23. <stdout>
  24. <line text="0" />
  25. <line text="2" />
  26. <line text="4" />
  27. <line text="6" />
  28. </stdout>
  29. </run>
  30. </ajc-test>
  31. <ajc-test dir="features193" vm="14" title="switch 3">
  32. <compile files="Switch3.java" options="-source 14">
  33. </compile>
  34. <run class="Switch3" vmargs="">
  35. <stdout>
  36. <line text="3" />
  37. <line text="6" />
  38. <line text="9" />
  39. <line text="12" />
  40. </stdout>
  41. </run>
  42. </ajc-test>
  43. <ajc-test dir="bugs196/java14" vm="14" title="simple record">
  44. <compile files="Person.java" options="--enable-preview -14" />
  45. </ajc-test>
  46. <ajc-test dir="bugs196/java14" vm="14" title="using a record">
  47. <compile files="Person.java UsingPersonRecord.java"
  48. options="--enable-preview -14" />
  49. <run class="UsingPersonRecord" vmargs="--enable-preview">
  50. <stdout>
  51. <line text="Person[firstName=A, lastName=B, age=99]" />
  52. <line text="A" />
  53. </stdout>
  54. </run>
  55. </ajc-test>
  56. <ajc-test dir="bugs196/java14" vm="14"
  57. title="instanceof patterns">
  58. <compile files="Jep305.java" options="--enable-preview -14" />
  59. <run class="Jep305" vmargs="--enable-preview">
  60. <stdout>
  61. <line text="orange" />
  62. <line text="apple" />
  63. </stdout>
  64. </run>
  65. </ajc-test>
  66. <ajc-test dir="bugs196/java14" vm="14"
  67. title="advising records">
  68. <compile
  69. files="TraceRecordComponents.aj Person.java UsingPersonRecord.java"
  70. options="--enable-preview -14" />
  71. <run class="UsingPersonRecord" vmargs="--enable-preview">
  72. <stdout>
  73. <line text="execution(String Person.toString())" />
  74. <line text="Person[firstName=A, lastName=B, age=99]" />
  75. <line text="execution(String Person.firstName())" />
  76. <line text="A" />
  77. </stdout>
  78. </run>
  79. </ajc-test>
  80. <!-- textblock still in preview at 14 level -->
  81. <ajc-test dir="features195/textblock" vm="14"
  82. title="textblock 1">
  83. <compile files="Code.java"
  84. options="--enable-preview -source 14">
  85. </compile>
  86. <run class="Code" vmargs="--enable-preview">
  87. <stdout>
  88. <line text="this is a text" />
  89. <line text="block" />
  90. </stdout>
  91. </run>
  92. </ajc-test>
  93. <ajc-test dir="features195/textblock" vm="14"
  94. title="textblock 2">
  95. <compile files="Code2.java"
  96. options="--enable-preview -source 14">
  97. </compile>
  98. <run class="Code2" vmargs="--enable-preview">
  99. <stdout>
  100. <line text="this is a text" />
  101. <line text="block in advice" />
  102. </stdout>
  103. </run>
  104. </ajc-test>
  105. </suite>