[jbosstools-issues] [JBoss JIRA] (JBIDE-22469) Compilation problem in StructuredModelWrapperTest

Rastislav Wagner (JIRA) issues at jboss.org
Wed Jun 22 06:19:01 EDT 2016


     [ https://issues.jboss.org/browse/JBIDE-22469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rastislav Wagner closed JBIDE-22469.
------------------------------------


verified on github both master aj 4.4.0.x branches. Eclipse doesnt complain 

> Compilation problem in StructuredModelWrapperTest
> -------------------------------------------------
>
>                 Key: JBIDE-22469
>                 URL: https://issues.jboss.org/browse/JBIDE-22469
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: common/jst/core
>    Affects Versions: 4.4.0.Alpha2
>            Reporter: Viacheslav Kabanovich
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.4.0.Final
>
>         Attachments: CompilationProblem.png
>
>
> Eclipse show error marker "The method execute(IFile, StructuredModelWrapper.ICommand) is ambiguous for the type StructuredModelWrapper". On the call
> {code}
> StructuredModelWrapper.execute(testFile, xmlDocument -> assertNotNull(xmlDocument));
> {code}
> There are 2 execute methods, with similar interfaces. Though compiler shoud resolve the method by assertNotNull having 'void' for the return type, and tycho build currently finds no problem with it, still this code looks on the verge of fault and better be improved by changing it to 
> {code}
> StructuredModelWrapper.execute(testFile, xmlDocument -> { assertNotNull(xmlDocument); });
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list