Hi Oded, The use of these types comes from our desire (and our users desire) to work with Java 1.1, often in Applets in a web browser. This unfortunately means that the more abstract collections framework introduced in 1.2 is not available.
While Collection has a toArray() method, Vector (or maybe List) are better interfaces, since some collections (eg. Map, Set) don't have any consideration for order. An array has a definite order. We've not (to my knowledge) had any issues reported to do with synchronized access to a Vector. There is a general sentiment that supporting the Collections API in the next version would be a good idea. However, the library is relatively mature, we do want to keep the current API, and the majority of work is being done in other areas (use of Apache commons components for example). Regards, Andrew. -----Original Message----- From: Oded Arbel [mailto:[EMAIL PROTECTED] Sent: Monday, 18 October 2004 5:22 PM To: [EMAIL PROTECTED] Subject: Implementation of "struct" data type in XmlWriter.writeObject(Object) Hi list I have an issue with the way writeObject() does "struct" data type: in version 1.2b1 (which is the one one can download from the binary distribution servers), writeObject only recognizes java.util.Hashtable as a "struct" type, while it would have been much much better to recgonize any class implementing java.util.Map as a "struct" type. Same with "array" - one would expect any java.util.Collection to be supported as an "array" type while only java.util.Vector is supported (And there are some issues with using Vector to store collection data which is why one shouldn't pick use Vector at all unless synchronized data access is needed). Are there any plans to fix that problem ? -- Oded Arbel m-Wise mobile solutions [EMAIL PROTECTED] +972-9-9611212 (204) +972-54-7340014 ::.. Class schedules are designed so that every student will waste maximum time between classes. Corollary: When you are occasionally able to schedule two classes in a row, they will be held in classrooms at opposite ends of the campus. -- Laws of Class Scheduling n°2