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

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

Github user asfgit closed the pull request at:

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


> @ToString if used with includes='prop1,prop2' could allow the pseudo prop 
> name 'super' as an alternative to using the includeSuper flag
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-8011
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8011
>             Project: Groovy
>          Issue Type: Improvement
>          Components: xforms
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Minor
>
> Basically, the following would be supported:
> {code}
> import groovy.transform.*
> @ToString
> class Foo {
>   String baz = 'baz'
> }
> @ToString(includes='super,num,blah', includeNames=true)
> class Bar extends Foo {
>   String blah = 'blah'
>   int num = 42
> }
> new Bar().toString() // => Bar(blah:blah, num:42, super:Foo(baz))
> {code}



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

Reply via email to