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

Viacheslav Kabanovich (JIRA) issues at jboss.org
Tue May 31 16:29:00 EDT 2016


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

Viacheslav Kabanovich updated JBIDE-22469:
------------------------------------------
    Attachment: CompilationProblem.png


> 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.Alpha3
>
>         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