You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Jochen Theodorou (JIRA)" <ji...@apache.org> on 2016/07/06 09:38:11 UTC

[jira] [Commented] (GROOVY-7563) InvokerHelper formatting methods have inconsistent API

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

Jochen Theodorou commented on GROOVY-7563:
------------------------------------------

I must say I care less about invokerHelper.format, I care more about println(x) and power asserts. I think the difference is especially, that println does not use safe, but the power assert does. And for those I am for * always print range in range format, ; * Provide recursively safe method for nested structures. As for the map key-self-detection.... I am for trying to recognize this, yes... but not for just putting the exception itself in the text

> InvokerHelper formatting methods have inconsistent API
> ------------------------------------------------------
>
>                 Key: GROOVY-7563
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7563
>             Project: Groovy
>          Issue Type: Improvement
>          Components: groovy-jdk
>            Reporter: Thibault Kruse
>            Priority: Minor
>
> in class org.codehaus.groovy.runtime.InvokerHelper, there are methods used to print out Objects. The methods sometimes have a maxsize, verbose or safe argument, but they do not have them consistently. I suggest changing the private API so that methods for all Collection/Map types have the same API and same functionality.
> See https://github.com/apache/incubator-groovy/pull/96



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