This repository acts as an MCVE for eclipse-aspectj/aspectj#85.
Aspects compiled by plain javac to a java library are being woven into target class but there is
Exception in thread "main" java.lang.NoSuchMethodError: pl.example.aspect1.PublicMethodAspect1.aspectOf()Lpl/example/aspect1/PublicMethodAspect1;
at pl.example.impl.App.main(App.java:12)
at runtime.
- clone project
- run
./gradlew -i publishToMavenLocal
at both aspect1 and aspect2 - run
./gradlew -i run
atimpl
project
Using id "io.freefair.aspectj" version "4.1.6"
plugin for both aspects projects seems to fix the issue.
The original issue that made me create the issue in org.aspectj project is that, at my project, when multiple aspects are being used only the last one is being applied. I still work on that.