-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APT problem: StackOverflowError in RoundDispatcher.handleProcessor #195
Comments
I debugged into AJC, because unfortunately the upstream Eclipse Jave Compiler (ACJ) underneath AJC does not log a full stack trace for the stack overflow error. Here it is:
It would be interesting to see if that works in plain vanilla ECJ or is AJC-specific. I will try that next after work. |
Update (CC @zenbones): I quickly checked during a break, and it definitely is not an AJC problem. The same occurs when compiling the project with plain vanilla ECJ 3.31.0. And also there Update: Bug ticket eclipse-jdt/eclipse.jdt.core#565 created. |
This issue came up in dev-aspectj/aspectj-maven-plugin#108, but it is not a problem concerning the Maven plugin. Instead, it seems to be related to annotation processing (APT) support for AJC:
There is an annotation processor on the classpath, namely
com.querydsl:querydsl-apt:5.0.0-jakarta
. It contains a file META-INF/services/javax.annotation.processing.Processor with the following content:That annotation processor handles the
@jakarta.persistence.MappedSuperclass
annotations found on two classes in the sample repository.While Javac (used by Maven Compiler Plugin) can correctly generate code, it seems as if the annotation processor throws off AJC like this (error message with additional line breaks):
A reproducer is at https://github.com/zenbones/showme. Thanks to @zenbones for reporting the problem.
See also dev-aspectj/aspectj-maven-plugin#108 (comment) for an AspectJ Maven workaround which can also be applied to the AJC command line: letting Javac take care of annotation processing and then using
-proc:none
for AJC.The text was updated successfully, but these errors were encountered: