Groovy
  1. Groovy
  2. GROOVY-5151

Provide methods to specify owner, delegate and thisObject of closures

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.4
    • Fix Version/s: 1.8.5, 2.0-beta-2
    • Component/s: None
    • Labels:
      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.

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

        Activity

        Cédric Champeau created issue -
        Cédric Champeau made changes -
        Field Original Value New Value
        Attachment groovy-5151.patch [ 58014 ]
        Cédric Champeau made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12734075 ] Default workflow, editable Closed status [ 12745887 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971608 ] Default workflow, editable Closed status [ 12979328 ]

          People

          • Assignee:
            Cédric Champeau
            Reporter:
            Cédric Champeau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development