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.

serialversionuid.xml 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <!-- AspectJ v1.5.1 Tests -->
  3. <suite>
  4. <ajc-test dir="features151/serialveruid" title="basic">
  5. <compile files="Basic.java" options="-1.5 -XaddSerialVersionUID"/>
  6. <run class="Basic">
  7. <stderr>
  8. <line text="SerialVersionUID is -7868414887470674287"/>
  9. </stderr>
  10. </run>
  11. </ajc-test>
  12. <ajc-test dir="features151/serialveruid" title="basic - lint">
  13. <compile files="Basic.java" options="-1.5 -XaddSerialVersionUID -Xlint:warning">
  14. <message kind="warning" text="calculated SerialVersionUID for type Basic"/>
  15. </compile>
  16. <run class="Basic">
  17. <stderr>
  18. <line text="SerialVersionUID is -7868414887470674287"/>
  19. </stderr>
  20. </run>
  21. </ajc-test>
  22. <ajc-test dir="features151/serialveruid" title="horrible">
  23. <compile files="BigHorribleClass.java,AnAspect.java" options="-1.5 -XaddSerialVersionUID -Xlint:warning">
  24. <message kind="warning" text="calculated SerialVersionUID for type BigHorribleClass"/>
  25. </compile>
  26. <run class="BigHorribleClass">
  27. <stderr>
  28. <line text="SerialVersionUID is -3425710461209091702"/>
  29. </stderr>
  30. </run>
  31. </ajc-test>
  32. <ajc-test dir="features151/serialveruid" title="abstract class">
  33. <compile files="TwoTypes.java,Test.java,ATest.java" options="-1.5 -XaddSerialVersionUID -Xlint:warning">
  34. <message kind="warning" text="calculated SerialVersionUID for type TwoTypes"/>
  35. <message kind="warning" text="calculated SerialVersionUID for type com.testware.ejb.common.Test to be -1674849842374764518L"/>
  36. <message kind="warning" text="calculated SerialVersionUID for type com.testware.ejb.common.ATest to be -7300724421810308152L"/>
  37. </compile>
  38. <run class="TwoTypes">
  39. <stderr>
  40. <line text="Test SerialVersionUID is -1674849842374764518"/>
  41. <line text="ATest SerialVersionUID is -7300724421810308152"/>
  42. </stderr>
  43. </run>
  44. </ajc-test>
  45. </suite>