Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.4, 4.2-milestone-2
    • Component/s: Diff
    • Labels:
      None
    • Tests:
      Unit
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Here is the use case:

      {{groovy}}
      import org.apache.commons.lang3.ArrayUtils;
      
      def c1 = "A\nB\nC\n"
      def c2 = "A\nX\nB\nC\n"
      def c3 = "A\nB\nC\nD\n"
      def c1a = Arrays.asList(c1.split('\\n'))
      def c2a = Arrays.asList(c2.split('\\n'))
      def c3a = Arrays.asList(c3.split('\\n'))
      
      def mresult = services.diff.merge(c1a, c2a, c3a, null)
      
      println mresult.merged.join('\n')
      
      {{/groovy}}
      

      Result:

      A
      X
      C
      D
      

      When it should be

      A
      X
      B
      C
      D
      

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              ludovic Ludovic Dubost
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: