Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22469

Compilation problem in StructuredModelWrapperTest

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.4.0.Final
    • 4.4.0.Alpha2
    • common
    • None

      Eclipse show error marker "The method execute(IFile, StructuredModelWrapper.ICommand) is ambiguous for the type StructuredModelWrapper". On the call

      StructuredModelWrapper.execute(testFile, xmlDocument -> assertNotNull(xmlDocument));
      

      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

      StructuredModelWrapper.execute(testFile, xmlDocument -> { assertNotNull(xmlDocument); });
      

            scabanovich Viacheslav Kabanovich (Inactive)
            scabanovich Viacheslav Kabanovich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: