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.

ajc190.xml 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs190/modules/aaa" title="build a module">
  4. <compile files="module-info.java com/foo1/C1.java" options="-1.9"/>
  5. </ajc-test>
  6. <ajc-test dir="bugs190/modules/bbb" title="run a module - classpath">
  7. <compile files="module-info.java aaa/bbb/A.java" options="-1.9"/>
  8. <run class="aaa.bbb.A">
  9. <stdout>
  10. <line text="A running"/>
  11. </stdout>
  12. </run>
  13. </ajc-test>
  14. <ajc-test dir="bugs190/modules/bbb" title="run a module - modulepath">
  15. <compile files="module-info.java aaa/bbb/A.java" options="-1.9"/>
  16. <run modulepath="$sandbox" module="my.module/aaa.bbb.A">
  17. <stdout>
  18. <line text="A running"/>
  19. </stdout>
  20. </run>
  21. </ajc-test>
  22. <ajc-test dir="bugs190/modules/bbb" title="package and run a module - modulepath">
  23. <compile files="module-info.java aaa/bbb/A.java" options="-1.9" outjar="my.module.jar"/>
  24. <file deletefile="module-info.java"/>
  25. <file deletefile="aaa"/>
  26. <run modulepath="my.module.jar" module="my.module/aaa.bbb.A">
  27. <stdout>
  28. <line text="A running"/>
  29. </stdout>
  30. </run>
  31. </ajc-test>
  32. <ajc-test dir="bugs190/modules/ccc" title="compile regular code using module code">
  33. <compile files="module-info.java aaa/bbb/A.java" options="-1.9" outjar="modules/my.module.jar"/>
  34. <file deletefile="module-info.java"/>
  35. <file deletefile="aaa"/>
  36. <compile files="InvokeA.java" options="-1.9" modulepath="$sandbox/modules/my.module.jar"/>
  37. </ajc-test>
  38. <ajc-test dir="bugs190/modules/ddd" title="compile regular code using module code that isn't visible">
  39. <compile files="module-info.java aaa/bbb/A.java" options="-1.9" outjar="modules/my.module.jar"/>
  40. <compile files="InvokeA.java" options="-1.9" modulepath="$sandbox/modules/my.module.jar">
  41. <message kind="error" text="package aaa.bbb is not visible"/>
  42. </compile>
  43. </ajc-test>
  44. <ajc-test dir="bugs190/modules/eee" title="binary weaving module">
  45. <compile files="module-info.java aaa/bbb/A.java" options="-1.9" outjar="my.module.jar"/>
  46. <file deletefile="module-info.java"/>
  47. <file deletefile="aaa"/>
  48. <compile files="Azpect.java" inpath="my.module.jar" outjar="my.module.woven.jar"/>
  49. <run modulepath="my.module.woven.jar" module="my.module/aaa.bbb.A">
  50. <stdout>
  51. <line text="Azpect running"/>
  52. <line text="A running"/>
  53. </stdout>
  54. </run>
  55. </ajc-test>
  56. <ajc-test dir="bugs190/520135" title="funny signature with method reference">
  57. <compile files="FailsApectJ.java" options="-1.8"/>
  58. </ajc-test>
  59. <ajc-test dir="bugs190/modules/fff" title="compile module including aspects">
  60. <compile files="module-info.java pkg/Demo.java otherpkg/Azpect.java" modulepath="$runtime" outjar="demomodule.jar" options="-1.9"/>
  61. <run modulepath="$runtime:demomodule.jar" module="demo/pkg.Demo">
  62. <stdout>
  63. <line text="Azpect running"/>
  64. <line text="Demo running"/>
  65. </stdout>
  66. </run>
  67. </ajc-test>
  68. <ajc-test dir="bugs190/modules" title="weave module">
  69. <compile files="aspect1/Azpect1.java" inpath="module1/module-one.jar" outjar="runner.jar" options="-1.8"/>
  70. <java classpath="runner.jar" class="a.b.c.Code"/>
  71. </ajc-test>
  72. <ajc-test dir="bugs190/various" title="setting static final outside clinit">
  73. <compile files="Code.java" options="-1.9"/>
  74. <run class="Code">
  75. <stdout>
  76. <line text="call(void java.io.PrintStream.println(String))"/>
  77. <line text="running"/>
  78. </stdout>
  79. </run>
  80. </ajc-test>
  81. <!-- from ajc153 -->
  82. <ajc-test dir="bugs153/pr156962" title="Test Annot Method Has Member 1">
  83. <compile files="Sample.java, LiftDeprecation.aj" options="-1.9 -XhasMember -showWeaveInfo -Xlint:ignore">
  84. <message kind="weave" text="'Sample' (Sample.java:1) is annotated with @Deprecated type annotation from 'LiftDeprecation' (LiftDeprecation.aj:2)"/>
  85. </compile>
  86. </ajc-test>
  87. <!-- from ajc153 -->
  88. <ajc-test dir="bugs153/pr156962" title="Test Annot Method Has Member 2">
  89. <compile files="Sample.java, LiftDeprecation.aj" options="-1.8 -XhasMember -showWeaveInfo -Xlint:ignore">
  90. <message kind="weave" text="'Sample' (Sample.java:1) is annotated with @Deprecated type annotation from 'LiftDeprecation' (LiftDeprecation.aj:2)"/>
  91. </compile>
  92. </ajc-test>
  93. </suite>