Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] AspectJ 1.9.8.RC1 with Java 17 support

Dear AspectJ users,

a couple of days ago we published the first release candidate for AspectJ 1.9.8 on Maven Central. If there are no blocker bugs, 1.9.8.RC1 might very well be identical to the final 1.9.8 release.

What is new since 1.9.7:

  • Cross-compilation via --release N now works as expected, see GitHub issue #70. This was never tested before since AspectJ 1.9.0 and has been fixed in 1.9.8.M1.
  • Java 17 is now supported as a compilation source and target version. Compared to the previously released developer version, we integrated the final Java 17 support from ECJ on top of JDT Core 3.27.
  • Due to upstream ECJ changes, now for compile-time or binary weaving you need to run the AJC compiler on JDK 11+. 1.9.8.M1 was the last version running on JDK 8.

Preliminary release notes are here.

The corresponding installer is available on AspectJ.dev.

To everyone: Please test it in as many projects as possible. Your feedback is welcome.

Enjoy AspectJ!

--
The AspectJ team

 

Alexander Kriegisch schrieb am 28.07.2021 15:47 (GMT +02:00):

the AspectJ development team is pleased to announce that a few days ago we released version 1.9.8.M1, available on Maven Central. The new feature compared to 1.9.7 is that cross-compilation via --release N now works as expected, see GitHub issue #70. This was never tested before since AspectJ 1.9.0 and has been fixed. This little milestone release still supports up to JDK 16, no changes there.

Additionally, we have started integrating Java 17 early access releases by integrating the beta-17 Eclipse Java Compiler (ECJ) branch into a development branch. So if you use version 1.9.8-SNAPSHOT from Maven Central's snapshot repository as described in GitHub issue #79, you can compile Java 17 source code and create Java 17 class files. The compiler features go as far as the ECJ implementation has progressed so far. I noticed that the new preview feature JEP 406: Pattern Matching for switch in ECJ is not completely done yet, but that is to be expected from an EA version. Otherwise, it seems to be pretty stable already. All AspectJ tests except the JEP 406 ones are green.


Back to the top