classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving system properties to gnu.classpath.*


From: Archie Cobbs
Subject: Re: Moving system properties to gnu.classpath.*
Date: Mon, 11 Oct 2004 20:38:43 -0500 (CDT)

David Holmes wrote:
> > How about just having this class use getClass().getClassLoader() to
> > check for itself, and refusing to function if not the boot loader?
> > Then we skip all the security stuff.
> 
> You mean similar to the some of the security checks themselves, the code
> being called checks the caller's classloader ?

I was actually thinking the class would check its own class loader.
So untrusted class loaders could load/define the class, but it wouldn't
work if they did. This check would be "simple" and perhaps more suitable
for initialization code.

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]