xml-rpc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wilson" <...@wilson.co.uk>
Subject Re: Dictionary vs. Hashtable in XmlRpc.java
Date Sat, 08 Jun 2002 11:51:59 GMT

----- Original Message -----
From: "Daniel Rall" <dlr@finemaltcoding.com>
To: <rpc-dev@xml.apache.org>
Sent: Friday, June 07, 2002 1:54 AM
Subject: Re: Dictionary vs. Hashtable in XmlRpc.java


[snip]

> Yeah, we can drop it if anyone wants to submit a patch.  I'm still a
> bit unsure about how this will affect use from applets, but as a 1.2
> plug-in is available, I'm hoping it won't be a major issue.
>

The attached patch makes Apache XML-RPC accept any object which implements
Map or List (for struct and array). It builds instances of Hashtable and
Vector for incoming structs and arrays. however that behaviour can be
changed by setting two system properties, xml-rpc.list and xml-rpc.map. For
example using the following parameters when starting the JVM will cause
HashMap and ArrayList to be used instead of Hashtable and Vector:

-Dxml-rpc.list=java.util.ArrayList -Dxml-rpc.map=java.util.HashMap

I have not committed these changes as the applet issue does not seem to have
been settled yet.

John Wilson
The Wilson Partnership
http://www.wilson.co.uk

Mime
View raw message