jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-4583

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

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 3.0
  • Component/s: None
  • Labels:
    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.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Guillaume Laforge added a comment - 02/Mar/11 9:59 AM

Not a full blown solution, but just some interesting tricks for the discussion:
http://groovyconsole.appspot.com/script/430001

Show
Guillaume Laforge added a comment - 02/Mar/11 9:59 AM Not a full blown solution, but just some interesting tricks for the discussion: http://groovyconsole.appspot.com/script/430001

People

  • Assignee:
    Guillaume Laforge
    Reporter:
    Luke Daley
Vote (0)
Watch (0)

Dates

  • Created:
    15/Dec/10 5:59 AM
    Updated:
    13/Feb/12 9:35 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.