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

DefaultGroovyMethods.size() breaking change in 3.0.x

    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
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: