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.

README-1.9.5.adoc 1013B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. = AspectJ 1.9.5
  2. _© Copyright 2019 Contributors. All rights reserved._
  3. The full list of resolved issues in 1.9.5 is available
  4. https://bugs.eclipse.org/bugs/buglist.cgi?bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&f0=OP&f1=OP&f3=CP&f4=CP&j1=OR&list_id=16866879&product=AspectJ&query_format=advanced&target_milestone=1.9.5[here]
  5. _Release info: 1.9.5 available 28-Nov-2019_
  6. AspectJ 1.9.5 supports Java13. Java13 introduces text blocks, but you
  7. must activate support for that via an `--enable-preview` flag when using
  8. the compiler and attempting to run the resultant classes: Here is
  9. `Code.java`:
  10. [source, java]
  11. ....
  12. public class Code {
  13. public static void main(String[] argv) {}
  14. static aspect X {
  15. before(): execution(* Code.main(..)) {
  16. System.out.println(
  17. """
  18. This
  19. is
  20. on
  21. multiple
  22. lines
  23. """
  24. );
  25. }
  26. }
  27. }
  28. ....
  29. Compile it with:
  30. [source, text]
  31. ....
  32. $ ajc --enable-preview -13 Code.java
  33. ....
  34. Now run it:
  35. [source, text]
  36. ....
  37. $ java --enable-preview Code
  38. This
  39. is
  40. on
  41. multiple
  42. lines
  43. ....