AnonymousClassLoader and ClassLoader
John Rose
John.Rose at Sun.COM
Thu Apr 24 16:09:44 PDT 2008
On Apr 24, 2008, at 4:43 AM, Rémi Forax wrote:
> I answer to myself, it's only in the case the host-class is null,
> otherwise the classloader used is the one of the host-class.
Right. The new class is supposed to inherit the same access rights,
protection domain, class loader, from the host class.
(In particular, the new class should be able to access the private
members of the host class. This gives a structured way to define
"new" code in the old class.)
> What is exactly the meaning of a null host-class ?
Here's what I had in mind, which I think is the most useful: Default
(system) protection domain and class loader. As if there were some
empty system class that acts as the host class.
-- John
More information about the mlvm-dev
mailing list