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.

ajc173.xml 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs173/pr407739" title="add remove annos">
  4. <compile files="MyAnnotation.java Hello.java Aspect.java" options="-1.5 -showWeaveInfo">
  5. <message kind="weave" text="'private String dummy [RuntimeVisibleAnnotations]' of type 'Hello' (Hello.java) has had @MyAnnotation field annotation removed by 'Aspect' (Aspect.java:3)"/>
  6. <message kind="weave" text="'private String dummy [RuntimeVisibleAnnotations]' of type 'Hello' (Hello.java) is annotated with @MyAnnotation(dummy2 = &quot;korte&quot;) field annotation from 'Aspect' (Aspect.java:4)"/>
  7. </compile>
  8. <run class="Hello">
  9. <stdout>
  10. <line text="@MyAnnotation(dummy1=, dummy2=korte)" vm="-1.8"/>
  11. <line text="@MyAnnotation(dummy1=&quot;&quot;, dummy2=&quot;korte&quot;)" vm="9-"/>
  12. </stdout>
  13. </run>
  14. </ajc-test>
  15. <ajc-test dir="bugs173/pr408014" title="inner interface mixin">
  16. <compile files="IdentifiableMixin.java" options="-1.5 -showWeaveInfo">
  17. </compile>
  18. </ajc-test>
  19. <ajc-test dir="bugs173/pr407966" title="ordering">
  20. <compile files="Aspect.aj Use.java Def.java" options="-1.5 -showWeaveInfo">
  21. </compile>
  22. </ajc-test>
  23. <ajc-test dir="bugs173/pr407494" title="inner names">
  24. <compile files="A.java" options="-1.5 -showWeaveInfo">
  25. <message kind="weave" text="Join point 'staticinitialization(void a.b.c.A$B.&lt;clinit&gt;())' in Type 'a.b.c.A$B' (A.java:4) advised by before advice from 'a.b.c.X' (A.java:13)"/>
  26. <message kind="weave" text="Join point 'staticinitialization(void a.b.c.A.&lt;clinit&gt;())' in Type 'a.b.c.A' (A.java:3) advised by before advice from 'a.b.c.X' (A.java:13)"/>
  27. <message kind="weave" text="Join point 'staticinitialization(void a.b.c.A$$C.&lt;clinit&gt;())' in Type 'a.b.c.A$$C' (A.java:6) advised by before advice from 'a.b.c.X' (A.java:13)"/>
  28. </compile>
  29. </ajc-test>
  30. <ajc-test dir="bugs173/pr407494" title="inner names 2">
  31. <compile files="A2.java" options="-1.5 -showWeaveInfo">
  32. <message kind="weave" text="Join point 'staticinitialization(void a.b.c.A$$B$$C.&lt;clinit&gt;())' in Type 'a.b.c.A$$B$$C' (A2.java:10) advised by before advice from 'a.b.c.X' (A2.java:14)"/>
  33. </compile>
  34. </ajc-test>
  35. <ajc-test dir="bugs173/pr405016/one" title="class anno value 1">
  36. <compile files="Gimme.java Thingy.java" options="-1.5 -showWeaveInfo">
  37. <message kind="weave" text="Extending interface set for type 'Thingy' (Thingy.java) to include 'java.io.Serializable' (Thingy.java)"/>
  38. </compile>
  39. <run class="Thingy">
  40. <stdout>
  41. <line text="I am serializable? true"/>
  42. </stdout>
  43. </run>
  44. </ajc-test>
  45. <ajc-test dir="bugs173/pr405016" title="class anno value">
  46. <compile files="Gimme.java Thingy.java" options="-1.5 -showWeaveInfo">
  47. <message kind="weave" text="Extending interface set for type 'Thingy' (Thingy.java) to include 'java.io.Serializable' (Thingy.java)"/>
  48. </compile>
  49. <run class="Thingy">
  50. <stdout>
  51. <line text="I am serializable? true"/>
  52. </stdout>
  53. </run>
  54. </ajc-test>
  55. <ajc-test dir="bugs173/pr404601" title="abstract method error">
  56. <compile files="user/IUser.java user/Test.java user/UserTrait.java user/Youser.java" options="-1.5">
  57. <message kind="error" text="private intertype declaration 'void UserTrait$I.testSetUsername(java.lang.String)' clashes with public member 'void Youser.testSetUsername(java.lang.String)'"/>
  58. </compile>
  59. </ajc-test>
  60. <ajc-test dir="bugs173/lyor" title="declare anno on itd">
  61. <compile files="Code.java" options="-1.5 -showWeaveInfo">
  62. <message kind="weave" text="'public void Intface.getName()' (Code.java) is annotated with @Foo method annotation from 'A' (Code.java:7)"/>
  63. <message kind="weave" text="Type 'C' (Code.java) has intertyped method from 'A' (Code.java:'void Intface.getName()')"/>
  64. <message kind="weave" text="Type 'Intface' (Code.java) has intertyped method from 'A' (Code.java:'void Intface.getName()')"/>
  65. </compile>
  66. </ajc-test>
  67. <ajc-test dir="bugs173/lyor/2" title="declare anno on itd 2">
  68. <compile files="A1.java" outjar="aspects1.jar" options="-1.5 -Xlint:ignore"/>
  69. <compile files="Intface.java A2.java" aspectpath="aspects1.jar" outjar="aspects2.jar" options="-1.5"/>
  70. <compile files="Code.java" aspectpath="aspects1.jar;aspects2.jar" options="-1.5"/>
  71. <!--
  72. <message kind="weave" text="'public void Intface.getName()' (A2.java) is annotated with @Foo method annotation from 'A1' (A1.java:7)"/>
  73. <message kind="weave" text="Type 'C' (Code.java) has intertyped method from 'A2' (A2.java:'void Intface.getName()')"/>
  74. <message kind="weave" text="Type 'Intface' (Code.java) has intertyped method from 'A2' (A2.java:'void Intface.getName()')"/>
  75. -->
  76. </ajc-test>
  77. </suite>