You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/01/27 10:40:00 UTC

[jira] [Updated] (GROOVY-4583) Ability to get class bytes of closures at runtime, including nested closures (for remote control)

     [ https://issues.apache.org/jira/browse/GROOVY-4583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King updated GROOVY-4583:
------------------------------
    Fix Version/s:     (was: 3.x)

> Ability to get class bytes of closures at runtime, including nested closures (for remote control)
> -------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-4583
>                 URL: https://issues.apache.org/jira/browse/GROOVY-4583
>             Project: Groovy
>          Issue Type: New Feature
>            Reporter: Luke Daley
>            Priority: Major
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)