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

Ability to persist meta methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.0
    • 4.x
    • groovy-jdk
    • None
    • eclipse ganymede
      windows

    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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              matt.corby Matthew Corby-Eaglen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: