That's a limitation of the current code, mentioned on the status page. For right now, the easiest work-around is probably to just add an add() method to the containing object for unmarshalling (along with size() and get() methods, if you're also marshalling).

- Dennis

Guillaume Pothier wrote:

Hi, I have another question. I have a class that has a field of type java.util.List. The field is initialized in its declaration:
class Foo
{
private List itsUsers = new ArrayList ();
(...)
}


When processing the bindings, JiBX fails saying that a no-args constructor is needed for class java.util.List (full stack trace below). Replacing List by ArrayList solves my problem, however I do not want to do that. Is there a way to tell to the <collection> tag not to instantiate the collection?
Guillau,e







------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to