groovy
  1. groovy
  2. GROOVY-4032

Ability to persist meta methods

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.0
    • Fix Version/s: 3.0
    • Component/s: groovy-jdk
    • Labels:
      None
    • Environment:
      eclipse ganymede
      windows
    • Number of attachments :
      0

      Description

      Other languages, such as Lua, can persist dynamic methods:

      http://luaforge.net/projects/pluto/

      example of how it works:

      http://www.mudbytes.net/index.php?a=topic&t=1991

      In groovy, you cannot persist a meta method that you have dynamically added to a class because the metaclass is not set up with the closure when deserialization occurs.

      I think it would be a good feature to implement, however it may be done.

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Matthew Corby-Eaglen
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: