Serialization
Peter Levart
peter.levart at marand.si
Wed Dec 16 04:23:22 PST 2009
On Wednesday 16 December 2009 13:06:59 Mark Thornton wrote:
> Peter Levart wrote:
> > Bytecode can be obtained from closure's class' classloader.
> >
> > Peter
> >
>
> That will need a change to the existing API.
>
> Mark Thornton
>
>
Using existing API, this should allways work:
#void() someClosure = #() { ... };
URL bytecode = someClosure.getClass().getClassLoader().getResource(someClosure.getClass().getName().replace('.', '/') + ".class");
Peter
More information about the lambda-dev
mailing list