-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[BUG] Annotation processing broken in Netbeans with latest nbjavac updates #3468
Comments
I assume, that you mean apache/netbeans#6206, which is targettet for NB20, not NB19, which is currently being released. |
Using a lombok build based on the branch suggested in #3393 fixes the issue in NetBeans. |
I'm seeing this same issue / stacktrace with NetBeans 21 / OpenJDK 17.0.11+9 / Lombok 1.18.22 and 1.18.32. |
Edit: A sorry, I though this was an issue raised against NetBeans. |
Describe the bug
Annotation processing broken in Netbeans with latest nbjavac updates. Probably this started with latest commits related to JDK 21 NBJavac support apache/netbeans#6234
To Reproduce
I have gradle project opened with Netbeans. And opened java class annotated with Slf4j annotation. No expected logger field is generated. And I see an exception stacktrace in popup over class declaration:
Annotation processor lombok.launch.AnnotationProcessorHider$AnnotationProcessor failed with an exception: qualid
lombok.javac.JavacImportList.getFullyQualifiedNameForSimpleNameNoAliasing(JavacImportList.java:53)
lombok.core.TypeResolver.typeRefToFullyQualifiedName(TypeResolver.java:60)
lombok.javac.HandlerLibrary.handleAnnotation(HandlerLibrary.java:247)
lombok.javac.JavacTransformer$AnnotationVisitor.visitAnnotationOnType(JavacTransformer.java:79)
lombok.javac.JavacNode.traverse(JavacNode.java:132)
lombok.javac.JavacAST.traverseChildren(JavacAST.java:223)
lombok.javac.JavacNode.traverse(JavacNode.java:95)
lombok.javac.JavacAST.traverseChildren(JavacAST.java:223)
lombok.javac.JavacNode.traverse(JavacNode.java:90)
lombok.javac.JavacAST.traverse(JavacAST.java:219)
lombok.javac.JavacTransformer.transform(JavacTransformer.java:63)
lombok.javac.apt.LombokProcessor.process(LombokProcessor.java:324)
lombok.core.AnnotationProcessor$JavacDescriptor.process(AnnotationProcessor.java:187)
lombok.core.AnnotationProcessor.process(AnnotationProcessor.java:241)
lombok.launch.AnnotationProcessorHider$AnnotationProcessor.process(AnnotationProcessor.java:90)
org.netbeans.modules.java.source.indexing.APTUtils$ErrorToleratingProcessor.process(APTUtils.java:982)
com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:1007)
com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:923)
com.sun.tools.javac.processing.JavacProcessingEnvironment.access$2300(JavacProcessingEnvironment.java:113)
com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1251)
com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1366)
com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1252)
org.netbeans.lib.nbjavac.services.NBJavaCompiler.processAnnotations(NBJavaCompiler.java:64)
com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1151)
com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:348)
com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:282)
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:74...
Expected behavior
working annotation processing
Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: