Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ajc1810.xml 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs1810/259416" title="param anno binding">
  4. <compile options="-1.8 -showWeaveInfo" files="RGB.java ColouredAnnotation.java Test1.java">
  5. <message kind="weave" text="Join point 'method-execution(void Test1.coloured(java.lang.String))' in Type 'Test1' (Test1.java:5) advised by before advice from 'X' (Test1.java:10)"/>
  6. </compile>
  7. <run class="Test1">
  8. <stdout>
  9. <line text="Annotation from parameter on method execution(void Test1.coloured(String)) is @ColouredAnnotation(value=RED)"/>
  10. </stdout>
  11. </run>
  12. </ajc-test>
  13. <ajc-test dir="bugs1810/259416" title="param anno binding 2">
  14. <compile options="-1.8 -showWeaveInfo" files="RGB.java ColouredAnnotation.java Test2.java">
  15. <message kind="weave" text="Join point 'method-execution(void Test2.coloured(java.lang.String))' in Type 'Test2' (Test2.java:5) advised by before advice from 'X' (Test2.java:10)"/>
  16. </compile>
  17. <run class="Test2">
  18. <stdout>
  19. <line text="Annotation from parameter on method execution(void Test2.coloured(String)) is @ColouredAnnotation(value=GREEN)"/>
  20. </stdout>
  21. </run>
  22. </ajc-test>
  23. <ajc-test dir="bugs1810/259416" title="param anno binding 3">
  24. <compile options="-1.8 -showWeaveInfo" files="RGB.java ColouredAnnotation.java Test3.java">
  25. <message kind="weave" text="Join point 'method-execution(void Test3.coloured(int, java.lang.String))' in Type 'Test3' (Test3.java:5) advised by before advice from 'X' (Test3.java:10)"/>
  26. </compile>
  27. <run class="Test3">
  28. <stdout>
  29. <line text="Annotation from parameter on method execution(void Test3.coloured(int, String)) is @ColouredAnnotation(value=RED)"/>
  30. </stdout>
  31. </run>
  32. </ajc-test>
  33. <ajc-test dir="bugs1810/259416" title="param anno binding 4">
  34. <compile options="-1.8 -showWeaveInfo" files="RGB.java ColouredAnnotation.java Test4.java Filler.java">
  35. <message kind="weave" text="Join point 'method-execution(void Test4.coloured(int, java.lang.String))' in Type 'Test4' (Test4.java:5) advised by before advice from 'X' (Test4.java:10)"/>
  36. </compile>
  37. <run class="Test4">
  38. <stdout>
  39. <line text="Annotation from parameter on method execution(void Test4.coloured(int, String)) is @ColouredAnnotation(value=GREEN)"/>
  40. </stdout>
  41. </run>
  42. </ajc-test>
  43. <ajc-test dir="bugs1810/500035" title="ataspectj binding">
  44. <compile options="-1.8" files="Code.java"/>
  45. <run class="Code">
  46. <stdout>
  47. <line text="targetObject = hello"/>
  48. <line text="regex = l"/>
  49. <line text="replacement = 7"/>
  50. <line text="he7lo"/>
  51. </stdout>
  52. </run>
  53. </ajc-test>
  54. <ajc-test dir="bugs1810/500035" title="ataspectj binding 2">
  55. <compile options="-1.8" files="Code2.java"/>
  56. <run class="Code2">
  57. <stdout>
  58. <line text="targetObject = hello"/>
  59. <line text="regex = l"/>
  60. <line text="replacement = 8"/>
  61. <line text="he8lo"/>
  62. </stdout>
  63. </run>
  64. </ajc-test>
  65. <ajc-test dir="bugs1810/500035" title="ataspectj binding 3 -XnoInline">
  66. <compile options="-1.8 -XnoInline" files="Code3.java"/>
  67. <run class="Code3">
  68. <stdout>
  69. <line text="first: binding target, just passing everything through: target=Foo(1)"/>
  70. <line text="Executing run(abc) on Foo(i=1)"/>
  71. <line text="second: binding this and target, just passing everything through: this=Foo(0) target=Foo(1)"/>
  72. <line text="Executing run(abc) on Foo(i=1)"/>
  73. <line text="third: binding this, just passing everything through: this=Foo(0)"/>
  74. <line text="Executing run(abc) on Foo(i=1)"/>
  75. <line text="fourth: binding this, switching from Foo(0) to Foo(3)"/>
  76. <line text="Executing run(abc) on Foo(i=1)"/>
  77. <line text="fifth: binding target, switching from Foo(1) to Foo(4)"/>
  78. <line text="Executing run(abc) on Foo(i=4)"/>
  79. <line text="sixth: binding this and target, switching them around (before this=Foo(0) target=Foo(1))"/>
  80. <line text="Executing run(abc) on Foo(i=0)"/>
  81. </stdout>
  82. </run>
  83. </ajc-test>
  84. <ajc-test dir="bugs1810/500035" title="ataspectj binding 4">
  85. <compile options="-1.8" files="Code3.java"/>
  86. <run class="Code3">
  87. <stdout>
  88. <line text="first: binding target, just passing everything through: target=Foo(1)"/>
  89. <line text="Executing run(abc) on Foo(i=1)"/>
  90. <line text="second: binding this and target, just passing everything through: this=Foo(0) target=Foo(1)"/>
  91. <line text="Executing run(abc) on Foo(i=1)"/>
  92. <line text="third: binding this, just passing everything through: this=Foo(0)"/>
  93. <line text="Executing run(abc) on Foo(i=1)"/>
  94. <line text="fourth: binding this, switching from Foo(0) to Foo(3)"/>
  95. <line text="Executing run(abc) on Foo(i=1)"/>
  96. <line text="fifth: binding target, switching from Foo(1) to Foo(4)"/>
  97. <line text="Executing run(abc) on Foo(i=4)"/>
  98. <line text="sixth: binding this and target, switching them around (before this=Foo(0) target=Foo(1))"/>
  99. <line text="Executing run(abc) on Foo(i=0)"/>
  100. </stdout>
  101. </run>
  102. </ajc-test>
  103. <ajc-test dir="bugs1810/501656" title="generics exception">
  104. <compile options="-1.8 -parameters" files="ApplicationException.java ApplicationExceptionHandler.java"/>
  105. </ajc-test>
  106. <ajc-test dir="bugs1810/490315" title="indy">
  107. <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"/>
  108. </ajc-test>
  109. <ajc-test dir="bugs1810/493554" title="pertarget">
  110. <compile options="-1.8" files="Dep.java FooAspect.aj Cmd.java"/>
  111. <run class="example.kusedep.Cmd"></run>
  112. </ajc-test>
  113. <ajc-test dir="bugs1810/ambig" title="ambiguous message - 18">
  114. <compile options="-1.8" files="X.java"/>
  115. </ajc-test>
  116. <ajc-test dir="bugs1810/ambig" title="ambiguous message - 17">
  117. <compile options="-1.7" files="X.java"/>
  118. </ajc-test>
  119. <ajc-test dir="bugs1810/502807" title="unexpected aioobe">
  120. <compile options="-1.8" files="TestCollectors.java">
  121. <message kind="error" text="The method toList() in the type Collectors is not applicable for the arguments (Inner::getId)"/>
  122. </compile>
  123. </ajc-test>
  124. </suite>