Date: Thu, 9 Jul 1998 11:25:46 -0700 (PDT)
From: schemers@Eng
To: "Rickard Öberg" <rickard@futurniture.se>
Subject: Re: Changing classloader of a class
In-Reply-To: <35A4E360.E77E5793@futurniture.se>
You aren't supposed to do that. Custom class loaders should always
call findSystemClass before attempting to define any class. If it
is a system class then findSystemClass will return it to
you. Redefining system classes in your own class loader would cause
problems.
roland
Rickard =D6berg writes:
> Hi!
>=20
> Is there some way to get a system-class and define it with my own
> classloader?=20
> I have tried to call getSystemResource in the loadClass-method of my
> classloader but the security-restrictions doesn't allow me to get the=
> classes (if I change the name of the class-file to .clas and load tha=
t
> it works fine though). The API-docs hint that the
> getSystemResource-method calls the securitymanager to check if it's o=
k
> to load from the .class-file, but even though I have made my own
> securitymanager which allows this (essentially the NullManager) it
> doesn't work.. :-(
>=20
> Any ideas??
>=20
> /Rickard
>=20