You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2016/12/01 18:42:58 UTC

[jira] [Resolved] (GROOVY-8011) @ToString if used with includes='prop1,prop2' could allow the pseudo prop name 'super' as an alternative to using the includeSuper flag

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

Paul King resolved GROOVY-8011.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 2.5.0-beta-1

Proposed PR merged

> @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-beta-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.4#6332)