Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

README-195.html 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  2. <html> <head>
  3. <title>AspectJ 1.9.5 Readme</title>
  4. <style type="text/css">
  5. <!--
  6. P { margin-left: 20px; }
  7. PRE { margin-left: 20px; }
  8. LI { margin-left: 20px; }
  9. H4 { margin-left: 20px; }
  10. H3 { margin-left: 10px; }
  11. -->
  12. </style>
  13. </head>
  14. <body>
  15. <div align="right"><small>
  16. &copy; Copyright 2019 Contributors.
  17. All rights reserved.
  18. </small></div>
  19. <h1>AspectJ 1.9.5</h1>
  20. <p>The full list of resolved issues in 1.9.5 is available
  21. <a href="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</a></h2>.</p>
  22. <p>AspectJ 1.9.5 supports Java13. Java13 introduces text blocks, but you must activate support for that via
  23. an <tt>--enable-preview</tt> flag when using the compiler and attempting to run the resultant classes:
  24. Here is <tt>Code.java</tt>:
  25. <pre><code>
  26. =======8<=========
  27. public class Code {
  28. public static void main(String[] argv) {
  29. }
  30. static aspect X {
  31. before(): execution(* Code.main(..)) {
  32. System.out.println(
  33. """
  34. This
  35. is
  36. on
  37. multiple
  38. lines
  39. """
  40. );
  41. }
  42. }
  43. }
  44. =========8<=========
  45. </code></pre>
  46. <p>Compile it with:
  47. <pre><code>
  48. $ ajc --enable-preview -13 Code.java
  49. </code></pre>
  50. <p>Now run it:
  51. <pre><code>
  52. $ java --enable-preview Code
  53. This
  54. is
  55. on
  56. multiple
  57. lines
  58. </code></pre>
  59. <p>Available: 1.9.5 available 28-Nov-2019</p>
  60. <br><br>
  61. <!-- ============================== -->
  62. </body>
  63. </html>