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 04:12:58 UTC

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

Paul King created GROOVY-8011:
---------------------------------

             Summary: @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)