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.

ajc1810.xml 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs1810/508661" title="various ltw">
  4. <compile options="-1.8" files="CacheMethodResult.java A_yes.java B_no.java Run.java" outjar="classes.jar"/>
  5. <compile options="-1.8 -Xlint:ignore" files="CacheMethodResultAspect.java" outjar="aspects.jar"/>
  6. <run class="Run" ltw="aop.xml">
  7. <stdout>
  8. <line text="around: void A_yes.m()"/>
  9. <line text="A_yes.m()"/>
  10. <line text="A_yes has interface? CacheMethodResultAspect$ajcMightHaveAspect"/>
  11. <line text="B_no.m()"/>
  12. <line text="B_no has interface? no"/>
  13. </stdout>
  14. </run>
  15. </ajc-test>
  16. <ajc-test dir="bugs1810/500035" title="ataspectj binding">
  17. <compile options="-1.8" files="Code.java"/>
  18. <run class="Code">
  19. <stdout>
  20. <line text="targetObject = hello"/>
  21. <line text="regex = l"/>
  22. <line text="replacement = 7"/>
  23. <line text="he7lo"/>
  24. </stdout>
  25. </run>
  26. </ajc-test>
  27. <ajc-test dir="bugs1810/500035" title="ataspectj binding 2">
  28. <compile options="-1.8" files="Code2.java"/>
  29. <run class="Code2">
  30. <stdout>
  31. <line text="targetObject = hello"/>
  32. <line text="regex = l"/>
  33. <line text="replacement = 8"/>
  34. <line text="he8lo"/>
  35. </stdout>
  36. </run>
  37. </ajc-test>
  38. <ajc-test dir="bugs1810/500035" title="ataspectj binding 3 -XnoInline">
  39. <compile options="-1.8 -XnoInline" files="Code3.java"/>
  40. <run class="Code3">
  41. <stdout>
  42. <line text="first: binding target, just passing everything through: target=Foo(1)"/>
  43. <line text="Executing run(abc) on Foo(i=1)"/>
  44. <line text="second: binding this and target, just passing everything through: this=Foo(0) target=Foo(1)"/>
  45. <line text="Executing run(abc) on Foo(i=1)"/>
  46. <line text="third: binding this, just passing everything through: this=Foo(0)"/>
  47. <line text="Executing run(abc) on Foo(i=1)"/>
  48. <line text="fourth: binding this, switching from Foo(0) to Foo(3)"/>
  49. <line text="Executing run(abc) on Foo(i=1)"/>
  50. <line text="fifth: binding target, switching from Foo(1) to Foo(4)"/>
  51. <line text="Executing run(abc) on Foo(i=4)"/>
  52. <line text="sixth: binding this and target, switching them around (before this=Foo(0) target=Foo(1))"/>
  53. <line text="Executing run(abc) on Foo(i=0)"/>
  54. </stdout>
  55. </run>
  56. </ajc-test>
  57. <ajc-test dir="bugs1810/500035" title="ataspectj binding 4">
  58. <compile options="-1.8" files="Code3.java"/>
  59. <run class="Code3">
  60. <stdout>
  61. <line text="first: binding target, just passing everything through: target=Foo(1)"/>
  62. <line text="Executing run(abc) on Foo(i=1)"/>
  63. <line text="second: binding this and target, just passing everything through: this=Foo(0) target=Foo(1)"/>
  64. <line text="Executing run(abc) on Foo(i=1)"/>
  65. <line text="third: binding this, just passing everything through: this=Foo(0)"/>
  66. <line text="Executing run(abc) on Foo(i=1)"/>
  67. <line text="fourth: binding this, switching from Foo(0) to Foo(3)"/>
  68. <line text="Executing run(abc) on Foo(i=1)"/>
  69. <line text="fifth: binding target, switching from Foo(1) to Foo(4)"/>
  70. <line text="Executing run(abc) on Foo(i=4)"/>
  71. <line text="sixth: binding this and target, switching them around (before this=Foo(0) target=Foo(1))"/>
  72. <line text="Executing run(abc) on Foo(i=0)"/>
  73. </stdout>
  74. </run>
  75. </ajc-test>
  76. <ajc-test dir="bugs1810/501656" title="generics exception">
  77. <compile options="-1.8 -parameters" files="ApplicationException.java ApplicationExceptionHandler.java"/>
  78. </ajc-test>
  79. <ajc-test dir="bugs1810/490315" title="indy">
  80. <compile options="-1.8" files="FailingAspect.java SomeAnno.java SomeContext.java SomeCriteria.java SomeDTO.java SomeEnum.java SomePiece.java SomePropertyDTO.java SomeService.java SomeServiceImpl.java"/>
  81. </ajc-test>
  82. <ajc-test dir="bugs1810/493554" title="pertarget">
  83. <compile options="-1.8" files="Dep.java FooAspect.aj Cmd.java"/>
  84. <run class="example.kusedep.Cmd"/>
  85. </ajc-test>
  86. <ajc-test dir="bugs1810/ambig" title="ambiguous message - 18">
  87. <compile options="-1.8" files="X.java"/>
  88. </ajc-test>
  89. <ajc-test dir="bugs1810/ambig" title="ambiguous message - 17">
  90. <compile options="-1.7" files="X.java"/>
  91. </ajc-test>
  92. <ajc-test dir="bugs1810/502807" title="unexpected aioobe">
  93. <compile options="-1.8" files="TestCollectors.java">
  94. <message kind="error" text="The method toList() in the type Collectors is not applicable for the arguments (Inner::getId)"/>
  95. </compile>
  96. </ajc-test>
  97. </suite>