You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/06/02 19:11:49 UTC

[jira] [Updated] (GROOVY-6586) Read vs Write to members of base script supplied by @BaseScript is inconsistent

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

Pascal Schumacher updated GROOVY-6586:
--------------------------------------
    Assignee:     (was: James P. White)

> Read vs Write to members of base script supplied by @BaseScript is inconsistent
> -------------------------------------------------------------------------------
>
>                 Key: GROOVY-6586
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6586
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>            Reporter: James P. White
>         Attachments: BaseScriptTransformationTest.groovy
>
>
> The base script class supplied by the @BaseScript annotation is documented as being able to offer access to member fields to the script code.  But this only works for reading.  If an attempt to write one of those fields is made then a script binding is created.
> A workaround is to use getters and setters rather than accessing the field directly.



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