groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-6586) Read vs Write to members of base script supplied by @BaseScript is inconsistent
Date Tue, 02 Jun 2015 17:11:49 GMT

     [ 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)

Mime
View raw message