[
https://issues.apache.org/jira/browse/GROOVY-6586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-6586.
-----------------------------
> 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: Eric Milles
> Priority: Major
> Fix For: 4.0.0-beta-2
>
> 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
(v8.20.1#820001)