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

DefaultGroovyMethods.size() breaking change in 3.0.x

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.0.7
    • Fix Version/s: None
    • Component/s: groovy-runtime
    • Labels:
      None

      Description

      org.codehaus.groovy.runtime.DefaultGroovyMethods.size(StringBuffer sb) 

      doesn't have the same behavior between 2.5.x and 3.0.x

      assert org.codehaus.groovy.runtime.DefaultGroovyMethods.size(new StringBuffer('test')) == 4 // true in 2.5.x
      assert org.codehaus.groovy.runtime.DefaultGroovyMethods.size(new StringBuffer('test')) == 4 // false in 3.0.x, expected 1

      I didn't find any explanation about this change in the release note.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              romain.bioteau Romain Bioteau

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment