0

I have a project I am working on which is currently being compiled using JDK 17. I am working on adding advices using AspectJ and wants to use the compile time weaving for it. I am trying to compile the code - 'Existing Source Code + AspectJ advices' using AJC maven plugin. The maximum source value supported is 16 - https://www.mojohaus.org/aspectj-maven-plugin/compile-mojo.html#source

Does this mean that ajc doesn't support compiling code which is using JDK17+ features? Is post compile weaving the way to go about in such a scenario?

user762421
  • 503
  • 1
  • 12
  • 24
  • Of relevance: https://github.com/mojohaus/aspectj-maven-plugin/issues/154#issuecomment-1244063831 – Turing85 Aug 07 '23 at 14:29
  • BTW, `dev.aspectj:aspectj-maven-plugin` is also the plugin recommended by the AspectJ project's [Development environment setup guide](https://github.com/eclipse-aspectj/aspectj/blob/master/docs/developer/IDE.md#maven). – kriegaex Aug 07 '23 at 23:48
  • thanks @Turing85 and @kriegaex. The `dev.aspectj:aspectj-maven-plugin` solves the JDK 17 compatibility issue. Trying to deal with Lombok + AspectJ issue :) – user762421 Aug 08 '23 at 12:25

0 Answers0