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

DefaultGroovyMethods.size() breaking change in 3.0.x

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.0.7
    • None
    • groovy-runtime
    • 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

            Unassigned Unassigned
            romain.bioteau Romain Bioteau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: