[
https://issues.apache.org/jira/browse/NETBEANS-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17189108#comment-17189108
]
Xavier G commented on NETBEANS-1842:
------------------------------------
Hi,
downgrading Java did not work for me. Moreover it is not a real solution. Also
I'm using Linux not windows.
I noted some new stuff, it seams with lombok >1.18.8 netbeans really generate 2
methods (getter at least) in the class in target/classses folder, one is ok
with the good code :
public Long getxxx() {
return this.xxx;
}
and another one like this (what I saw using jdgui to decompile the .class) :
public Long getXXXXXX() {
throw new RuntimeException("Uncompilable source code");
}
I come to see this while looking to understand why executing Junit test on a
specific method did not work (no test method message). And it appear that there
is at least a problem between lombok and surefire (netbeans is not involved
this time as the pb occured with command line).
The bad method seems to be added in the class when compilation occured for
Test run (run focused test method) or with the background scanning.
Hope it 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: [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