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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.7
    • 2.5.8, 3.0.0-rc-1
    • Compiler
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: