You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/06/03 04:17:59 UTC

[jira] [Commented] (GROOVY-7853) o.c.g.r.t.DefaultTypeTransformation does not apply the right toString on primitve arrays when transforming to String

    [ https://issues.apache.org/jira/browse/GROOVY-7853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15313544#comment-15313544 ] 

ASF GitHub Bot commented on GROOVY-7853:
----------------------------------------

GitHub user paulk-asert opened a pull request:

    https://github.com/apache/groovy/pull/345

    GROOVY-7853: o.c.g.r.t.DefaultTypeTransformation does not apply the r…

    …ight toString on primitve arrays when transforming to String

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/paulk-asert/groovy groovy7853

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/345.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #345
    
----
commit 5c914153d3c97708d10cf210cf62989e51008368
Author: paulk <pa...@asert.com.au>
Date:   2016-06-03T04:15:09Z

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

----


> o.c.g.r.t.DefaultTypeTransformation does not apply the right toString on primitve arrays when transforming to String
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-7853
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7853
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.6
>            Reporter: Baruch Sadogursky
>            Priority: Minor
>
> As shown in #groovypuzzlers S3:
> {code:borderStyle=solid}
> byte[] data = "hello".bytes
> String convert(byte[] data) {
>     data
> }
> assert data.toString() == convert(data)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)