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

getSet* property name => Cannot read write-only property exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.7
    • Fix Version/s: 2.5.8, 3.0.0-rc-1
    • Component/s: Compiler
    • Labels:
      None

      Description

      • When accessing a property whose name starts with "getSet", Groovy throws
        GroovyRuntimeException: Cannot read write-only property: getSet...
        
      • Example:
        // Returns the SQL update statement representation of the DB object
        GString getSetSql() { ... }
        

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              emge mgroovy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: