Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6586

Read vs Write to members of base script supplied by @BaseScript is inconsistent

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 4.0.0-beta-2
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              emilles Eric Milles
              Reporter:
              jimwhite James P. White
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: