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

Provide methods to specify owner, delegate and thisObject of closures

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.4
    • 1.8.5, 2.0-beta-2
    • None
    • None

    Description

      See the discussion at http://groovy.329449.n5.nabble.com/Serializing-Closures-td5015137.html

      Closures are serializable, but the "owner", "delegate" and "thisObject" objects may not be serializable. The idea is to provide a method which returns a copy of the current closure with the above fields nullified.

      A "rehydrate" method should be provided to offer the inverse operation.

      Attachments

        1. groovy-5151.patch
          7 kB
          Cédric Champeau

        Activity

          People

            melix Cédric Champeau
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: