commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: [logging] minor patch applied for AccessControlException catching...
Date Tue, 26 Feb 2002 04:52:03 GMT


On Mon, 25 Feb 2002 costinm@covalent.net wrote:

> Date: Mon, 25 Feb 2002 20:31:50 -0800 (PST)
> From: costinm@covalent.net
> Reply-To: Jakarta Commons Developers List <commons-dev@jakarta.apache.org>
> To: Jakarta Commons Developers List <commons-dev@jakarta.apache.org>
> Subject: Re: [logging] minor patch applied for AccessControlException
>     catching...
>
> On Tue, 26 Feb 2002, James Strachan wrote:
>
> > I've just committed a minor patch to the SimpleLog class that catches any
> > security exceptions thrown inside the class constructor (when accessing
> > system properties) which occur when using the commons-logging component
> > inside a container.
>
> Good catch ! I completely forgot the 'sandbox' case during the release.
>

This should also help running commons-logging based applets, where the
same issue applies.

> There is one more problem I found with the class loaders, we
> need to try Class.forName() if the thread loader fails.
>
> I doubt there are many other who'll notice this, but it's a
> valid use case and trivial fix. It happens if commons-logging
> is loaded in a child class loader, and the thread class loader
> is set to a different loader ( that will happen if the container
> is using commons-logging, and it uses a separate loader than
> the application )
>

+1

> Costin
>

Craig


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message