[
https://issues.apache.org/jira/browse/GROOVY-6586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King reassigned GROOVY-6586:
---------------------------------
Assignee: Paul King
> 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
> Assignee: Paul King
> 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)