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 2017/05/02 02:04:19 UTC
[jira] [Closed] (GROOVY-8013) The checking of property names during
AST transform attribute processing doesn't take into account
includeSuperProperties
[ https://issues.apache.org/jira/browse/GROOVY-8013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-8013.
-----------------------------
> 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
> Fix For: 2.5.0-alpha-1
>
>
> 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.15#6346)