http.agent patch

Bryce McKinlay mckinlay@redhat.com
Sun Jul 11 22:01:00 GMT 2004


Mark Wielaard wrote:

>Both Tom and Michael had some comments on my last patch to set the http
>agent for HTTP connections. I believe the following patch addresses both
>concerns and makes sure that even when the Connection class is
>loaded/initialized from a class with not enough permissions it can still
>get at the necessary system properties.
>  
>

I wonder if we really need to use AccessController.doPrivilaged() in a 
static initializer. Won't the class initialization code, which calls the 
static initializer, already be privilaged?

Bryce



More information about the Java-patches mailing list