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-197.html 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  2. <html>
  3. <head>
  4. <title>AspectJ 1.9.7 Readme</title>
  5. <style type="text/css">
  6. <!--
  7. P { margin-left: 20px; }
  8. PRE { margin-left: 20px; }
  9. LI { margin-left: 20px; }
  10. H4 { margin-left: 20px; }
  11. H3 { margin-left: 10px; }
  12. -->
  13. </style>
  14. </head>
  15. <body>
  16. <div align="right"><small>&copy; Copyright 2021 Contributors. All rights reserved.</small></div>
  17. <h1>AspectJ 1.9.7</h1>
  18. <p>
  19. AspectJ (binaries, source code, documentation) is now distributed under the
  20. <a href="https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt">Eclipse Public License v 2.0</a>.
  21. </p>
  22. <p>
  23. Please note that going forward Bugzilla for issue management is deprecated and new issues should be filed as <a href="https://github.com/eclipse/org.aspectj/issues/new">GitHub issues</a>.
  24. The list of issues addressed for 1.9.7 can be found
  25. <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.7">here for Bugzilla</a>
  26. and <a href="https://github.com/eclipse/org.aspectj/issues?q=is%3Aissue+is%3Aclosed++milestone%3A1.9.7">here for GitHub issues</a>.
  27. </p>
  28. <h2>New features</h2>
  29. <p>
  30. AspectJ 1.9.7 supports <a href="https://openjdk.java.net/projects/jdk/15/">Java 15</a> &amp;
  31. <a href="https://openjdk.java.net/projects/jdk/16/">Java 16</a> and their respective final and preview features:
  32. </p>
  33. <ul>
  34. <li>text blocks (final 15)</li>
  35. <li>records (preview 15, final 16)</li>
  36. <li><tt>instanceof</tt> pattern matching (preview 15, final 16)</li>
  37. <li>hidden classes (final 15)</li>
  38. <li>sealed classes (preview 15, preview 16)</li>
  39. </ul>
  40. <p>
  41. For features marked as preview on a given JDK, you need to compile with <tt>ajc --enable-preview</tt> and run with
  42. <tt>java --enable-preview</tt> on that JDK.
  43. </p>
  44. <p>
  45. Please note that you cannot run code compiled with preview features on any other JDK than the one used for
  46. compilation. For example, records compiled with preview on JDK 15 cannot be used on JDK 16 without recompilation. This
  47. is a JVM limitation unrelated to AspectJ. Also, e.g. sealed classes are preview-1 on JDK 15 and preview-2 on JDK 16.
  48. You still need to recompile, no matter what.
  49. </p>
  50. <p>
  51. <p>
  52. You can find some sample code in the AspectJ test suite under the respective AspectJ version in which the features
  53. were first supported (possibly as JVM preview features):
  54. </p>
  55. <ul>
  56. <li><a href="https://github.com/eclipse/org.aspectj/tree/master/tests/features195/textblock">
  57. AspectJ 1.9.5: text blocks</a></li>
  58. <li><a href="https://github.com/eclipse/org.aspectj/tree/master/tests/features196/java14">
  59. AspectJ 1.9.6: records, <tt>instanceof</tt> patterns</a></li>
  60. <li><a href="https://github.com/eclipse/org.aspectj/tree/master/tests/features197/java15">
  61. AspectJ 1.9.7: hidden classes, sealed classes</a></li>
  62. </ul>
  63. <h2>Using LTW on Java 16+</h2>
  64. <p>
  65. Please note that if you want to use load-time weaving on Java 16+, the weaving agent collides with
  66. <a href="https://openjdk.java.net/jeps/396">JEP 396 (Strongly Encapsulate JDK Internals by Default)</a>. Therefore,
  67. you need to set the JVM parameter <tt>--add-opens java.base/java.lang=ALL-UNNAMED</tt> in order to enable aspect
  68. weaving. This is due to the fact that the weaver uses internal APIs for which we have not found an adequate
  69. replacement yet when defining classes in different classloaders.
  70. </p>
  71. <h2>Organisational and internal changes</h2>
  72. <p>
  73. For AspectJ 1.9.7, we implemented a lot of internal changes concerning the build and release process, most of which
  74. are not visible in the product itself but will help us to more easily maintain and release the product in the future
  75. and more easily on-boarding new developers or contributors. For example:
  76. </p>
  77. <ul>
  78. <li>The main repository has been moved to <a href="https://github.com/eclipse/org.aspectj">GitHub</a>, i.e. you can
  79. open bug reports, feature requests and pull requests there now.</li>
  80. <li>The Maven build has been improved, i.e. it is now easier to build and contribute to the product. Developers can
  81. just import the Maven project and no longer depend on Eclipse to build and test AspectJ, but can e.g. also use
  82. IntelliJ IDEA.</li>
  83. <li>Continuous integration builds now run on GitHub for different JDK versions, also for pull requests. I.e. both
  84. maintainers and contributors get to know if their changes break any tests.</li>
  85. <li>We can build releases and deploy them directly to Sonatype OSSRH (snapshots) or Maven Central (releases) with
  86. Maven now, i.e. it should be much easier in the future to publish development versions in order to enable users to
  87. re-test fixed bugs or try new features.</li>
  88. <li>All tests are portable now, i.e. they correctly run on Windows, too. This enables developers and contributors to make
  89. a choice if they want to work on Linux or on Windows.</li>
  90. </ul>
  91. <h2>Other changes and bug fixes</h2>
  92. <ul>
  93. <li>Remove legacy JRockit support.</li>
  94. <li>Support Windows 10 and Windows Server 2016/2019 in installer. Those versions were not detected until now, which
  95. led to bogus Windows batch files forwarding only 9 AJC parameters to the Java process via
  96. <tt>%1 %2 %3 %4 %5 %6 %7 %8 %9</tt> instead of <tt>%*</tt>.</li>
  97. <li>AJdoc (AspectJ's javadoc generator add-on for aspects) now supports the JDK 16 javadoc generator.</li>
  98. <li>Fix <tt>serialVersionUID</tt> initialization for Java 9+</li>
  99. <li>AJC (AspectJ Compiler) usage texts sometimes used to be printed twice and they were printed too often, e.g. on
  100. top of every compile error. This has been fixed. Furthermore, the partly outdated usage text is now basically the
  101. same as ECJ (Eclipse Java Compiler), which AJC is a fork of, plus AspectJ-specific additions which are added during
  102. runtime.</li>
  103. <li>Source and javadoc JARs distributed together with the AspectJ artifacts on Maven Central are now more accurate and
  104. more complete with regard to what is included (ASM, JDT Core) and how package names have been relocated.</li>
  105. <li>Fix sample code formatting issues (indentation) throughout the documentation.</li>
  106. </ul>
  107. <p>
  108. Available: 1.9.7 available 24-Jun-2021
  109. </p>
  110. </body>
  111. </html>