You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Xavier G (Jira)" <ji...@apache.org> on 2020/12/09 14:50:00 UTC

[jira] [Commented] (NETBEANS-1842) ambiguous method when using Lombok

    [ https://issues.apache.org/jira/browse/NETBEANS-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17246579#comment-17246579 ] 

Xavier G commented on NETBEANS-1842:
------------------------------------

Hi, 
I Just installed netbeans 12.2 in the hope it would work but no luck.


But doing so I got a new error message which I think could help a lot. In our project we have another annotation processor used hibernate-jpamodel and this one seems to be the real culprit behind the scene. This annotation processor use Jaxb which was removed since Java11.
`java.lang.NullPointerException
 at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:914)
 at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$2500(JavacProcessingEnvironment.java:113)
 at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1298)
 at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1380)
 at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1350)
 at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1240)
 at com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:404)
 at com.sun.tools.javac.api.JavacTaskImpl.enterTrees(JavacTaskImpl.java:451)
[catch] at org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204)
 at org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
 at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
 at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
 at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
 at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2750)
 at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$800(RepositoryUpdater.java:2154)
`
...
`
Annotation processing error: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException org.hibernate.jpamodelgen.xml.JpaDescriptorParser <init> 60 org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor init 99 `
`
the annotation processor in this case is run I believe by the IDE java version (in my case Java14 and not the target Java8) which could explain the wrong classes issued by annotation processor.

I don't know how I can add jaxb to netbeans module so nbjavac got jaxb but I think the problem is here.

 

Hope someone can help

> ambiguous method when using Lombok
> ----------------------------------
>
>                 Key: NETBEANS-1842
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1842
>             Project: NetBeans
>          Issue Type: Bug
>         Environment: Win10
>            Reporter: Rik Scarborough
>            Priority: Major
>         Attachments: Screen Shot 2019-07-25 at 4.14.03 PM.png
>
>
> When using lombok (v 1.18.4), generated methods show as errors in editor.  "reference to <methodname> is ambiguous   both method <methodname> in <classname> and method <methodname> in <classname> match".
>  
> Both methodnames and classnames are the exactly same.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists