Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ajc161.xml 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <!-- AspectJ v1.6.1 Tests -->
  3. <suite>
  4. <ajc-test dir="bugs161/pr235829" title="crazy generics and inner types">
  5. <compile files="Main.java a/Adapter.java a/b/Adapter.java" options="-1.5"/>
  6. <run class="Main"/>
  7. </ajc-test>
  8. <ajc-test dir="bugs161/pr235597" title="annotation exposure and generics">
  9. <compile files="AnnotationTest1.java SomeAnnotation.java SomeAspect.java" options="-1.5"/>
  10. <run class="AnnotationTest1">
  11. <stdout>
  12. <line text="@someAspect annotation parameter (call)"/>
  13. <line text="@someAspect annotation no parameter"/>
  14. <line text="@someAspect method name"/>
  15. <line text="@someAspect annotation parameter (execution)"/>
  16. <line text="test 1"/>
  17. <line text="@someAspect annotation parameter (call)"/>
  18. <line text="@someAspect annotation no parameter"/>
  19. <line text="@someAspect method name"/>
  20. <line text="@someAspect annotation parameter (execution)"/>
  21. <line text="test 2"/>
  22. <line text="@someAspect annotation parameter (call)"/>
  23. <line text="@someAspect annotation no parameter"/>
  24. <line text="@someAspect method name"/>
  25. <line text="@someAspect annotation parameter (execution)"/>
  26. <line text="test 3"/>
  27. </stdout>
  28. </run>
  29. </ajc-test>
  30. <ajc-test dir="bugs161/pr235204" title="incorrect call relationship">
  31. <compile files="RecursiveCatcher.java" options="-1.5 -emacssym"/>
  32. </ajc-test>
  33. <ajc-test dir="bugs161/pr233838" title="itd precedence - 1">
  34. <compile files="Z.java" options="-1.5"/>
  35. <run class="Z">
  36. <stdout>
  37. <line text="X.test()"/>
  38. </stdout>
  39. </run>
  40. </ajc-test>
  41. <ajc-test dir="bugs161/pr233838" title="itd precedence - 2">
  42. <compile files="Z2.java" options="-1.5"/>
  43. <run class="Z2">
  44. <stdout>
  45. <line text="Y.test()"/>
  46. </stdout>
  47. </run>
  48. </ajc-test>
  49. <ajc-test dir="bugs161/pr227401" title="getfield problem with generics">
  50. <compile files="Instrumentation.java Fails.java" options="-1.5"/>
  51. <run class="Fails">
  52. <stdout>
  53. <line text="getField(* protS) getField()='protected java.lang.String Fails$A.protS' getDeclaringType()='class Fails$A'"/>
  54. <line text="getField(* prot) getField()='protected int Fails$A.prot' getDeclaringType()='class Fails$A'"/>
  55. <line text="22"/>
  56. <line text="getField(* defS) getField()='java.lang.String Fails$A.defS' getDeclaringType()='class Fails$A'"/>
  57. <line text="getField(* def) getField()='int Fails$A.def' getDeclaringType()='class Fails$A'"/>
  58. <line text="11"/>
  59. <line text="getField(* defS) getField()='java.lang.String Fails$A.defS' getDeclaringType()='class Fails$A'"/>
  60. <line text="getField(* def) getField()='int Fails$A.def' getDeclaringType()='class Fails$A'"/>
  61. <line text="22"/>
  62. </stdout>
  63. </run>
  64. </ajc-test>
  65. <ajc-test dir="bugs161/pr231478" title="generic abstract aspects">
  66. <compile files="Base.java Sub.java AbstractComponent.java AbstractWindow.java" options="-1.5"/>
  67. </ajc-test>
  68. <ajc-test dir="bugs161/pr227993" title="field jp anno value">
  69. <compile files="FieldJP.java" options="-1.5"/>
  70. <run class="FieldJP">
  71. <stderr>
  72. <line text="get of YES field"/>
  73. <line text="fone=0"/>
  74. <line text="get of NO field"/>
  75. <line text="ftwo=0"/>
  76. <line text="fthr=0"/>
  77. <line text="set of YES field"/>
  78. <line text="set of NO field"/>
  79. </stderr>
  80. </run>
  81. </ajc-test>
  82. <ajc-test dir="bugs161/pr231187x" title="generics bounds decp">
  83. <compile files="Cement.java ConcreteClass.java SuperClass.java SuperClassAspect.aj WetCement.java Main.java" options="-1.5"/>
  84. <run class="concrete.Main">
  85. <stdout>
  86. <line text="ran!"/>
  87. </stdout>
  88. </run>
  89. </ajc-test>
  90. <ajc-test dir="bugs161/pr231187x" title="generics bounds decp - 2">
  91. <compile files="Cement.java ConcreteClass.java SuperClass.java WetCement.java" options="-1.5">
  92. <message kind="error" text="The type WetCement is not a valid substitute for the bounded parameter"/>
  93. </compile>
  94. </ajc-test>
  95. <ajc-test dir="bugs161/pr230134" title="ltw inherited cflow">
  96. <compile files="HW.java"/>
  97. <compile files="SimpleTracing.java Tracing.java HelloWorldTracing.java" outjar="foo.jar"/>
  98. <run class="hello.HW" classpath="$sandbox/foo.jar" ltw="aop.xml">
  99. <stdout>
  100. <line text="Hello World"/>
  101. </stdout>
  102. </run>
  103. </ajc-test>
  104. <ajc-test dir="bugs161/pr229910" title="around advice on field set">
  105. <compile files="Test.java" options="-1.5"/>
  106. <run class="Test"/>
  107. </ajc-test>
  108. <ajc-test dir="bugs161/pr226567" title="pipeline compilation and generic return type">
  109. <compile files="BarAspect.aj Foo.java Bar.java" options="-1.5"/>
  110. <compile files="BarAspect.aj Bar.java Foo.java" options="-1.5"/>
  111. </ajc-test>
  112. </suite>