[Top][All Lists]

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

RE: SecurityManager troubles

From: Jeroen Frijters
Subject: RE: SecurityManager troubles
Date: Fri, 13 Jan 2006 07:59:04 +0100

David Lichteblau wrote:
> Quoting Archie Cobbs (address@hidden):
> > Gary Benson wrote:
> > >Isn't the boot class loader solely for java.lang?
> > 
> > No.. under the Java2 delegation model, the boot class loader
> > should be given the first chance to try and load *every* class.
> > 
> > Typically it will only find classes in (or rt.jar,
> > or whatever your VM equivalent of the core library is) because
> > that's all it knows to look in. So then the child classloader(s)
> > get to try.
> FWIW, last time I had problems similar to the one being 
> discussed it was because classpath's default application classloader
> calls checkPackageAccess() before giving the bootstrap classloader 
> a chance to load the class, instead of the other way around.

The check is correct. It's intent is to disallow application classes
from referencing internal (but public) GNU Classpath classes.


reply via email to

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