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

List.minus() sometimes results in a list w/ elements ordered differently from the original list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-JSR-2
    • 1.0-JSR-4
    • None
    • None
    • Groovy jsr02, win xp sp2, jdk 1.4.2_08

    Description

      List.minus() almost always preserves the ordering in the original list, e.g.

      [1,2,3,4] - [2,3] == [1,4]
      [1,2,3,4] - [2,3] != [4,1]

      This feels natural. However, this does not always work - see the included test case.

      Attachments

        Activity

          People

            phkim Kim, Pilho
            antti.karanta@napa.fi Antti Karanta
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: