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 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs1810/500035" title="ataspectj binding">
  4. <compile options="-1.8" files="Code.java"/>
  5. <run class="Code">
  6. <stdout>
  7. <line text="targetObject = hello"/>
  8. <line text="regex = l"/>
  9. <line text="replacement = 7"/>
  10. <line text="he7lo"/>
  11. </stdout>
  12. </run>
  13. </ajc-test>
  14. <ajc-test dir="bugs1810/500035" title="ataspectj binding 2">
  15. <compile options="-1.8" files="Code2.java"/>
  16. <run class="Code2">
  17. <stdout>
  18. <line text="targetObject = hello"/>
  19. <line text="regex = l"/>
  20. <line text="replacement = 8"/>
  21. <line text="he8lo"/>
  22. </stdout>
  23. </run>
  24. </ajc-test>
  25. <ajc-test dir="bugs1810/500035" title="ataspectj binding 3 -XnoInline">
  26. <compile options="-1.8 -XnoInline" files="Code3.java"/>
  27. <run class="Code3">
  28. <stdout>
  29. <line text="first: binding target, just passing everything through: target=Foo(1)"/>
  30. <line text="Executing run(abc) on Foo(i=1)"/>
  31. <line text="second: binding this and target, just passing everything through: this=Foo(0) target=Foo(1)"/>
  32. <line text="Executing run(abc) on Foo(i=1)"/>
  33. <line text="third: binding this, just passing everything through: this=Foo(0)"/>
  34. <line text="Executing run(abc) on Foo(i=1)"/>
  35. <line text="fourth: binding this, switching from Foo(0) to Foo(3)"/>
  36. <line text="Executing run(abc) on Foo(i=1)"/>
  37. <line text="fifth: binding target, switching from Foo(1) to Foo(4)"/>
  38. <line text="Executing run(abc) on Foo(i=4)"/>
  39. <line text="sixth: binding this and target, switching them around (before this=Foo(0) target=Foo(1))"/>
  40. <line text="Executing run(abc) on Foo(i=0)"/>
  41. </stdout>
  42. </run>
  43. </ajc-test>
  44. <ajc-test dir="bugs1810/500035" title="ataspectj binding 4">
  45. <compile options="-1.8" files="Code3.java"/>
  46. <run class="Code3">
  47. <stdout>
  48. <line text="first: binding target, just passing everything through: target=Foo(1)"/>
  49. <line text="Executing run(abc) on Foo(i=1)"/>
  50. <line text="second: binding this and target, just passing everything through: this=Foo(0) target=Foo(1)"/>
  51. <line text="Executing run(abc) on Foo(i=1)"/>
  52. <line text="third: binding this, just passing everything through: this=Foo(0)"/>
  53. <line text="Executing run(abc) on Foo(i=1)"/>
  54. <line text="fourth: binding this, switching from Foo(0) to Foo(3)"/>
  55. <line text="Executing run(abc) on Foo(i=1)"/>
  56. <line text="fifth: binding target, switching from Foo(1) to Foo(4)"/>
  57. <line text="Executing run(abc) on Foo(i=4)"/>
  58. <line text="sixth: binding this and target, switching them around (before this=Foo(0) target=Foo(1))"/>
  59. <line text="Executing run(abc) on Foo(i=0)"/>
  60. </stdout>
  61. </run>
  62. </ajc-test>
  63. <ajc-test dir="bugs1810/501656" title="generics exception">
  64. <compile options="-1.8 -parameters" files="ApplicationException.java ApplicationExceptionHandler.java"/>
  65. </ajc-test>
  66. <ajc-test dir="bugs1810/490315" title="indy">
  67. <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"/>
  68. </ajc-test>
  69. <ajc-test dir="bugs1810/493554" title="pertarget">
  70. <compile options="-1.8" files="Dep.java FooAspect.aj Cmd.java"/>
  71. <run class="example.kusedep.Cmd"></run>
  72. </ajc-test>
  73. <ajc-test dir="bugs1810/ambig" title="ambiguous message - 18">
  74. <compile options="-1.8" files="X.java"/>
  75. </ajc-test>
  76. <ajc-test dir="bugs1810/ambig" title="ambiguous message - 17">
  77. <compile options="-1.7" files="X.java"/>
  78. </ajc-test>
  79. <ajc-test dir="bugs1810/502807" title="unexpected aioobe">
  80. <compile options="-1.8" files="TestCollectors.java">
  81. <message kind="error" text="The method toList() in the type Collectors is not applicable for the arguments (Inner::getId)"/>
  82. </compile>
  83. </ajc-test>
  84. </suite>