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

pop method does not output the latest element of a sorted list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 2.5.8, 2.5.9
    • 2.4.8
    • groovy-runtime
    • None

    Description

      Hello,

      Latest stable version of Groovy looks to have an important regression.

      list.sort().pop() looks to not provide the latest element of a sorted list.

      Please look at the code inside "Environment field" and screenshot showing the result and difference between versions.

      2.4.8 seems to work fine.

      2.5.9 is completely broken.

      So far I have not checked all impacted versions.

       

      Sorry if this bug has already been reported, but I did not find any reference to a similar issue elswhere.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Uggla René Ribaud
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: