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

o.c.g.r.t.DefaultTypeTransformation does not apply the right toString on primitve arrays when transforming to String

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.6
    • 2.5.0-alpha-1
    • None

    Description

      As shown in #groovypuzzlers S3:

      byte[] data = "hello".bytes
      
      String convert(byte[] data) {
          data
      }
      
      assert data.toString() == convert(data)
      

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              jbaruch Baruch Sadogursky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: