[ 
https://issues.apache.org/jira/browse/GROOVY-8011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-8011.
-----------------------------

> @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
>             Fix For: 2.5.0-alpha-1
>
>
> 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.15#6346)

Reply via email to