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

Ability to get class bytes of closures at runtime, including nested closures (for remote control)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The groovy remote project - http://groovy.codehaus.org/modules/remote/ - works by sending the bytes of a closure class (and all nested closures) over to the server to be used to define the class(es) there so the closure instance can be unserialised and executed.

      This currently works by searching the classpath for the closure .class files. This doesn't work when the closures weren't compiled beforehand, such as when using groovy from the command line or the groovy console.

      It would be great to have a foolproof way of getting the bytes that define a closure class and all the closure's it uses in a way that was agnostic to how the closure was defined/compiled to use here.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ldaley Luke Daley
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: