This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: http.agent patch
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: Mark Wielaard <mark at klomp dot org>
- Cc: java-patches at gcc dot gnu dot org
- Date: Sun, 11 Jul 2004 18:01:38 -0400
- Subject: Re: http.agent patch
- References: <1089578898.21380.774.camel@localhost>
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