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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not A Problem
    • Affects Version/s: 2.5.8, 2.5.9
    • Fix Version/s: 2.4.8
    • Component/s: groovy-runtime
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              Unassigned
              Reporter:
              Uggla René Ribaud

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment