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.

pre-letter.txt 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. Dear OOPSLA 2002 attendee;
  2. We have you listed as being registered for tutorial T40,
  3. Aspect-oriented programming with AspectJ. We are excited about giving
  4. this tutorial, and hope you will enjoy the presentation, exercises and
  5. discussion we have prepared.
  6. As with our past tutorials of this form, in the afternoon we would
  7. like to break the attendees into groups of two or three and work
  8. through a number of AspectJ exercises together.
  9. We will be bringing media and making ourselves available during breaks
  10. for help with setup, but in order to jump straight in and give you the
  11. most we can from this tutorial, it would really help us if many of you
  12. had an AspectJ environment installed early.
  13. This message contains basic instructions on where to get some needed
  14. tools. These instructions will not take much time.
  15. If you are planning to bring a laptop to the tutorial, would you
  16. please take the time to do the steps outlined in this message?
  17. If you're not planning to, you might want to install an AspectJ
  18. environment on your desktop anyway and try the instructions below, so
  19. you will be comfortable when we meet on Wednesday.
  20. [If you already have a working AspectJ environment and are familliar
  21. with it, we still recommend that you upgrade to 1.0.6 and follow the
  22. steps below]
  23. Thank you, and please don't hesitate to contact us (at
  24. support@aspectj.org) if you have any questions. See you on
  25. Wednesday...
  26. -Erik Hilsdale,
  27. Jim Hugunin,
  28. and the whole AspectJ Team
  29. Getting Ready for T40, Aspect-oriented programming with AspectJ
  30. --------------------------------------
  31. Overview:
  32. 0. Install AspectJ
  33. 1. Download JUnit and put it on your classpath
  34. 2. Test your setup
  35. ------------------------------
  36. 0. AspectJ
  37. Download the AspectJ 1.0.6 from
  38. http://aspectj.org/dl
  39. You should definitly download and intstall the tools package and the
  40. docs package. If you plan to use JBuilder, Forte/NetBeans, Emacs, or
  41. Eclipse for your development, you should download the appropriate
  42. plugin.
  43. ------------------------------
  44. 1. JUnit
  45. We use the JUnit framework for testing our exercises. Download JUnit
  46. from
  47. http://www.junit.org
  48. and place junit.jar on your CLASSPATH.
  49. ------------------------------
  50. 2. Test your setup
  51. a. Create a file "Hello.java" with this class:
  52. class Hello {
  53. public static void main(String[] args) {
  54. System.err.println(getHelloString());
  55. }
  56. public static String getHelloString() {
  57. return "Hello, WORLD";
  58. }
  59. }
  60. b. Compile the class with ajc and run it...
  61. > ajc Hello.java
  62. > java Hello
  63. Hello, WORLD
  64. c. Create a file "TestHello.java" with this class:
  65. public class TestHello extends junit.framework.TestCase {
  66. public TestHello(String name) {
  67. super(name);
  68. }
  69. public static void main(String[] args) {
  70. junit.textui.TestRunner.run(TestHello.class);
  71. }
  72. public void testHello() {
  73. assertEquals("Hello, OOPSLA", Hello.getHelloString());
  74. }
  75. }
  76. d. Compile the class with ajc and run it...
  77. > ajc TestHello.java
  78. > java TestHello
  79. .F
  80. Time: 0.01
  81. There was 1 failure:
  82. 1) testHello(TestHello)junit.framework.ComparisonFailure:
  83. expected:<...OOPSLA> but was:<...WORLD>
  84. at TestHello.testHello(TestHello.java:9)
  85. at TestHello.main(TestHello.java:6)
  86. FAILURES!!!
  87. Tests run: 1, Failures: 1, Errors: 0
  88. e. Oops... the test case seems to want a different string than the
  89. tested class. Fix that, compile whichever file you changed with
  90. ajc, run the tester again, and you're done. Thanks!
  91. > java TestHello
  92. .
  93. Time: 0
  94. OK (1 test)