Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-968

list.putAt(EmptyRange) doesn't obey position

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-JSR-2
    • Fix Version/s: 1.0-JSR-3
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      x = [0,1,2,3]
      x[1..<1] = [9,9,9]
      assert x == [0,9,9,9,123]

      but currently is [9,9,9,0,1,2,3]
      i.e. the position of the EmptyRange is ignored

        Attachments

          Activity

            People

            • Assignee:
              phkim Kim, Pilho
              Reporter:
              codevise Dierk K├Ânig
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: