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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 4.0.0-beta-2
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: