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

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

GitHub user paulk-asert opened a pull request:

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

    GROOVY-8011: @ToString if used with includes='prop1,prop2' could allo…

    …w the pseudo prop name 'super' as an alternative to using the includeSuper 
flag

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

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

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

    https://github.com/apache/groovy/pull/467.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 #467
    
----
commit ad65cd970554205e926fc21d143a22f52e0b32f7
Author: paulk <pa...@asert.com.au>
Date:   2016-12-01T04:55:20Z

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

----


> @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