http.agent patch

Mark Wielaard mark@klomp.org
Sun Jul 11 20:48:00 GMT 2004


Hi,

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.

2004-07-11  Mark Wielaard  <mark@klomp.org>

        * java/lang/System.java (static): Set http.agent system property when
        not yet set.
        * gnu/java/net/protocol/http/Connection.java (static): Get httpAgent
        from system property inside AccessController.doPrivileged() call.

Sorry for not handling this before 0.10 got released.
OK to commit?

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http.agent.patch
Type: text/x-patch
Size: 4349 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040711/3655bc73/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040711/3655bc73/attachment.sig>


More information about the Java-patches mailing list