tmulle opened a new issue, #8837:
URL: https://github.com/apache/netbeans/issues/8837
### Apache NetBeans version
Apache NetBeans 27
### What happened
Getting an error when using the latest version of Lombok in NetBeans 27 with
JDk21.
Here's my POM.
Properties:
```
<mapstruct.plugin.version>1.6.3</mapstruct.plugin.version>
<lombok.plugin.version>1.18.38</lombok.plugin.version>
<mapstruct-lombok.plugin.version>0.2.0</mapstruct-lombok.plugin.version>
```
Dependencies:
```
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-mapstruct-binding</artifactId>
<version>${mapstruct-lombok.plugin.version}</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${mapstruct.plugin.version}</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${mapstruct.plugin.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.plugin.version}</version>
<scope>provided</scope>
</dependency>
```
error...
```
java.lang.AbstractMethodError: Receiver class
lombok.javac.Javac$JavadocOps_8$1 does not define or inherit an implementation
of the resolved method 'abstract com.sun.tools.javac.parser.Tokens$Comment
stripIndent()' of interface com.sun.tools.javac.parser.Tokens$Comment.
at
com.sun.tools.javac.parser.DocCommentParser.<init>(DocCommentParser.java:168)
at
com.sun.tools.javac.parser.DocCommentParser.<init>(DocCommentParser.java:146)
at
com.sun.tools.javac.api.JavacTrees.getDocCommentTree(JavacTrees.java:1133)
at
com.sun.tools.javac.parser.LazyDocCommentTable.getCommentTree(LazyDocCommentTable.java:101)
at
com.sun.tools.javac.api.JavacTrees.getDocCommentTree(JavacTrees.java:758)
at
org.netbeans.modules.java.editor.base.javadoc.JavadocImports.computeTokensOfReferencedElements(JavadocImports.java:181)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.handleJavadoc(FindLocalUsagesQuery.java:93)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.visitMethod(FindLocalUsagesQuery.java:114)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.visitMethod(FindLocalUsagesQuery.java:55)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:992)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
at
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.scan(FindLocalUsagesQuery.java:200)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.scan(FindLocalUsagesQuery.java:55)
at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:95)
at com.sun.source.util.TreeScanner.scan(TreeScanner.java:110)
at
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:118)
at com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:202)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.visitClass(FindLocalUsagesQuery.java:141)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.visitClass(FindLocalUsagesQuery.java:55)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:899)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
at
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.scan(FindLocalUsagesQuery.java:200)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.scan(FindLocalUsagesQuery.java:55)
at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:95)
at com.sun.source.util.TreeScanner.scan(TreeScanner.java:110)
at
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:118)
at com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:202)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.visitClass(FindLocalUsagesQuery.java:141)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.visitClass(FindLocalUsagesQuery.java:55)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:899)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
at
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.scan(FindLocalUsagesQuery.java:200)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.scan(FindLocalUsagesQuery.java:55)
at com.sun.source.util.TreeScanner.scan(TreeScanner.java:110)
at
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78)
at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:118)
at
com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:151)
at
com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:627)
at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:92)
at
org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.scan(FindLocalUsagesQuery.java:200)
at
org.netbeans.modules.java.editor.base.semantic.FindLocalUsagesQuery.findUsages(FindLocalUsagesQuery.java:77)
at
org.netbeans.modules.java.editor.base.semantic.MarkOccurrencesHighlighterBase.processImpl(MarkOccurrencesHighlighterBase.java:338)
at
org.netbeans.modules.java.editor.semantic.MarkOccurrencesHighlighter.process(MarkOccurrencesHighlighter.java:93)
at
org.netbeans.modules.java.editor.base.semantic.MarkOccurrencesHighlighterBase.run(MarkOccurrencesHighlighterBase.java:99)
at
org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
at
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
at
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
[catch] at
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)
```
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
Was trying to compile and bring in the annotations for hibernate validation
on classes with Getter and Setter annotations on them from Lombok.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Linux
### JDK
JDk21
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
It might be something in my pom or not.
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists