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 05:17:58 UTC

[jira] [Created] (GROOVY-8013) The checking of property names during AST transform attribute processing doesn't take into account includeSuperProperties

Paul King created GROOVY-8013:
---------------------------------

             Summary: The checking of property names during AST transform attribute processing doesn't take into account includeSuperProperties
                 Key: GROOVY-8013
                 URL: https://issues.apache.org/jira/browse/GROOVY-8013
             Project: Groovy
          Issue Type: Bug
          Components: xforms
            Reporter: Paul King
            Assignee: Paul King


Example shown below is for @ToString but the issue affects numerous xforms:
{code}
import groovy.transform.*

@ToString
class Foo {
  String baz = 'baz'
}

@ToString(includes='baz', includeSuperProperties=true)
class Bar extends Foo {
  int num = 42
}

new Bar().toString()
// 1 compilation error: Error during @ToString processing: 'includes' property 'baz' does not exist.
{code}



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