users@jaxb.java.net

com.sun.xml.bind.util.ListImpl

From: Thomas Portmann <thomas.portmann_at_db.com>
Date: Mon, 24 Mar 2003 18:15:42 +0100

Hi all,


I would like to modify the implementation of interfaces which xjc generates on my project. To do my task, it would be helpful to know details about that java.util.List implementation

     com.sun.xml.bind.util.ListImpl

which is apparently a kind of wrapper around some other list (default is java.util.ArrayList).
I would like to use my own collectionType, not java.util.ArrayList.

Now, I don't understand why xjc uses this (not documented) implementation com.sun.xml.bind.util.ListImpl at all: In the implementation of my marshalling/unmarshalling which I get generated by xjc, only methods declared by the java.util.List interface are used on objects declared as com.sun.xml.bind.util.ListImpl. I don't see why it should be necessary to guarantee that a certain implementation - which is even backed by some other implementation! - shall be used-the corresponding member variable could directly be declared as java.util.List without any changes of the code.

Has anybody of you the implementation (or javadoc, resp.) of that list wrapper?



Best regards
Thomas



--
Diese E-Mail enth?lt vertrauliche und/oder rechtlich gesch?tzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.