]
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}