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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. = AspectJ 1.9.22
  2. :doctype: book
  3. :leveloffset: +1
  4. The releases 1.9.22 and 1.9.22.1 are described together in this document.
  5. = AspectJ 1.9.22.1
  6. // AspectJ_JDK_Update: Each a.b.c release needs a new release notes document. For a.b.c.d minors, the existing a.b.c
  7. // document can be updated. After copying this document, remove the comment from the previous one.
  8. _© Copyright 2024 Contributors. All rights reserved._
  9. _Release info: 1.9.22.1 available 11-May-2024_
  10. Please note that Bugzilla for issue management is deprecated and new issues should be filed as
  11. https://github.com/eclipse-aspectj/aspectj/issues/new[GitHub issues]. The list of issues addressed for 1.9.22.1 can be
  12. found here:
  13. * https://github.com/eclipse-aspectj/aspectj/issues?q=is%3Aissue+is%3Aclosed++milestone%3A1.9.22.1[GitHub 1.9.22.1]
  14. * 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.22.1[Bugzilla 1.9.22.1]
  15. == New features
  16. AspectJ 1.9.22.1 has no new features, only bugfixes and improvements.
  17. == Improvements
  18. * The pointcut parser now traverses type parameters in generic types, e.g. in `MyType<A, B>` it also traverses the
  19. previously ignored type parameters `A` and `B`, enabling future improvements like more exact type matching or checks
  20. for illegal primitive type parameters. See link:https://github.com/eclipse-aspectj/aspectj/issues/221[issue #221].
  21. * link:https://github.com/eclipse-aspectj/aspectj/issues/306[Performance issue due to repeated attempts to find classes without FQN]
  22. == Other changes and bug fixes
  23. * link:https://github.com/eclipse-aspectj/aspectj/issues/211[AJC core dump when mixing type name wildcards with generics]
  24. * link:https://github.com/eclipse-aspectj/aspectj/issues/302[Potential ThreadLocalMap.Entry accumulation in JoinPointImpl]
  25. * link:https://github.com/eclipse-aspectj/aspectj/issues/305[WeavingAdaptor optimisations cause Equinox weaving problems]
  26. = AspectJ 1.9.22
  27. _© Copyright 2024 Contributors. All rights reserved._
  28. _Release info: 1.9.22 available 23-Mar-2024_
  29. Please note that Bugzilla for issue management is deprecated and new issues should be filed as
  30. https://github.com/eclipse-aspectj/aspectj/issues/new[GitHub issues]. The list of issues addressed for 1.9.22 can be
  31. found here:
  32. * https://github.com/eclipse-aspectj/aspectj/issues?q=is%3Aissue+is%3Aclosed++milestone%3A1.9.22[GitHub 1.9.22]
  33. * 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.22[Bugzilla 1.9.22]
  34. == New features
  35. AspectJ 1.9.22 supports https://openjdk.java.net/projects/jdk/22/[Java 22], its final and preview features, such as:
  36. * JEP 456: Unnamed Variables & Patterns
  37. * JEP 459: String Templates (Second Preview)
  38. * JEP 463: Implicitly Declared Classes and Instance Main Methods (Second Preview)
  39. * JEP 447: Statements before super(...) (Preview)
  40. The following Java 22 features are API or JVM only, therefore irrelevant for the compiler and should just work
  41. out of the box:
  42. * JEP 423: Region Pinning for G1
  43. * JEP 454: Foreign Function & Memory API
  44. * JEP 458: Launch Multi-File Source-Code Programs
  45. * JEP 462: Structured Concurrency (Second Preview)
  46. * JEP 464: Scoped Values (Second Preview)
  47. * JEP 457: Class-File API (Preview)
  48. * JEP 461: Stream Gatherers (Preview)
  49. * JEP 460: Vector API (Seventh Incubator)
  50. == Improvements
  51. * No major improvements
  52. == Other changes and bug fixes
  53. * No major bug fixes
  54. == AspectJ usage hints
  55. [[ajc_build_system_requirements]]
  56. === AspectJ compiler build system requirements
  57. Since 1.9.21, the AspectJ compiler `ajc` (contained in the `aspectjtools` library) no longer works on JDKs 11 to 16. The
  58. minimum compile-time requirement is now JDK 17 due to upstream changes in the Eclipse Java Compiler (subset of JDT
  59. Core), which AspectJ is a fork of. You can still compile to legacy target versions as low as Java 1.3 when compiling
  60. plain Java code or using plain Java ITD constructs which do not require the AspectJ runtime `aspectjrt`, but the
  61. compiler itself needs JDK 17+. Just like in previous AspectJ versions, both the runtime `aspectjrt` and the load-time
  62. weaver `aspectjweaver` still only require JRE 8+.
  63. History: Since 1.9.8, the AspectJ compiler ajc needed JDK 11+, before then JDK 8+.
  64. [[ltw_java_16]]
  65. === Use LTW on Java 16+
  66. **Since AspectJ 1.9.21.1, using `--add-opens` is no longer necessary!** The additional JVM command-line option was
  67. necessary for LTW on JRE 16+ in all AspectJ versions up to 1.9.21. Since AspectJ 1.9.21.1, the LTW agent uses an
  68. alternative approach for defining new classes during weaving, which works without `--add-opens` - at least for now, i.e.
  69. JDKs 8 to 22. There still is no canonical solution, because link:https://bugs.openjdk.org/browse/JDK-8200559[JDK-8200559]
  70. is still unresolved since 2018.
  71. [[compile_with_preview]]
  72. === Compile with Java preview features
  73. For features marked as preview on a given JDK, you need to compile with `ajc --enable-preview` and run with
  74. `java --enable-preview` on that JDK.
  75. Please note, that you cannot run code compiled with preview features on any other JDK than the one used for compilation.
  76. For example, records compiled with preview on JDK 15 cannot be used on JDK 16 without recompilation. This is a JVM
  77. limitation unrelated to AspectJ. Also, e.g. sealed classes are preview-1 on JDK 15 and preview-2 on JDK 16. You still
  78. need to recompile, no matter what.