Serialization
Peter Levart
peter.levart at marand.si
Wed Dec 16 05:09:02 PST 2009
On Wednesday 16 December 2009 13:32:40 Mark Thornton wrote:
> >> 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
> >
> I can't find anything in the documentation that guarantees that will
> work. Nothing seems to prevent a ClassLoader from using separate spaces
> for classes and regular resources.
But I haven't seen any implementation that separates those two. JDK platform classloader's don't as far as I know.
Peter
More information about the lambda-dev
mailing list