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.7.adoc 5.2KB

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