----- Original Message -----
From: "Daniel Rall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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

Attachment: patch
Description: Binary data

Reply via email to