tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: svn commit: r948044 - /tomcat/tc6.0.x/trunk/STATUS.txt
Date Wed, 02 Jun 2010 19:35:31 GMT
2010/5/25  <>:
> Author: markt
> Date: Tue May 25 13:56:18 2010
> New Revision: 948044
> URL:
> Log:
> Proposals
> Modified:
>    tomcat/tc6.0.x/trunk/STATUS.txt
> +* Fix issues running AJP BIO coyote connector under a security manager
> +
> +  +1: markt
> +  -1:

If I search for the calls of FastHttpDateFormat.getCurrentDate()
method I see that in trunk

a) Http11AprProcessor() and  Http11NioProcessor() constructors call
FastHttpDateFormat.getCurrentDate() to preload the class

b) Http11Processor uses PrivilegedAction

c) The proposed patch implements the third way to solve this issue:
- preload the class inside SecurityClassLoad and
- call a constructor, to trigger initialization of static fields.

The same could be achieved with calling any static method of the
class, as said in ch.2.17.4 of JVM spec,
though I am fine with this implementation, as calling the constructor
looks faster and independent of the API.

I think that only one of those three approaches should be used,
and that will be c), as it covers not only HTTP, but AJP connectors as well.

By the way,
contains changes to SecurityClassLoad.loadUtilPackage(). Those should
not/cannot be backported as they are, because that method differs in

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message