Closed warrenc5 closed 1 year ago
Thanks for the report. The reproducible test case was essential for me to quickly identify the problem. Keep up the good practice!
I do not have much time, but I think that I fixed the problem. At least, when using the latest AspectJ snapshot, the result looks as expected:
[INFO] --- aspectj-maven-plugin:1.13.1:test-compile (test-compile) @ aspectj-bug ---
[INFO] Showing AJC message detail for messages of types: [error, warning, fail]
my.MyAnnotationProcessor processing
options: []
root elements :[MyVictim, MyTest]
root elements :[]
creating resource file:AJ_GH-240/target/generated-test-sources/aspectj-maven-plugin/MyTestAspect.aj
[ERROR] Syntax error, insert ";" to complete aspect member declaration
AJ_GH-240\target\generated-test-sources\aspectj-maven-plugin\MyTestAspect.aj:26
BROKEN HERE
^^^^
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
See also the PR I created for you: https://github.com/warrenc5/aspectj-bug/pull/2.
Probably you know already, but your workaround until the next release would be to use Maven Compiler with <proc>only</proc>
in combination with AspectJ Maven with <proc>none</proc>
, letting Javac do the annotation processing instead of Ajc.
Thank you, I will. Thanks again.
version aspectj 1.9.19 reproducible test case supplied https://github.com/warrenc5/aspectj-bug.git
when I have aspectj maven plugin generate aj files from an annotation processor in that project and there is an error in the aspect file then I get a stacktrace and abort
expected to get an informative error message same as when I run with the .aj file in the src/test/aspect directory.
Please assist.