AnonymousClassLoader in JRuby
Charles Oliver Nutter
charles.nutter at sun.com
Sun Apr 27 00:29:54 PDT 2008
Rémi Forax wrote:
> In my opinion, there is one AnonymousClassloader by host class to share
> security check.
I'm not sure I see how to use a single java.dyn.AnonymousClassLoader to
load multiple classes, since it seems to want the class bytes on
construction. Looking at source now.
> Else, why do you use reflection in org.jruby.util.AnonymousClassLoader ?
The reflection stuff is just to isolate pre-DVM JDKs from
java.dyn.AnonymousClasLoader. It would probably be replaced with a
pluggable mechanism of some kind. So it's essentially the same as what
you have, but backward compatible.
More information about the mlvm-dev
mailing list