[esb-issues] [JBoss JIRA] Closed: (JBESB-1165) XStreamToObject cannot handle arrays
Daniel Bevenius (JIRA)
jira-events at lists.jboss.org
Fri Oct 12 03:37:03 EDT 2007
[ http://jira.jboss.com/jira/browse/JBESB-1165?page=all ]
Daniel Bevenius closed JBESB-1165.
----------------------------------
Fix Version/s: 4.2.1 IR2
Resolution: Done
Committed revision 15793.
> XStreamToObject cannot handle arrays
> ------------------------------------
>
> Key: JBESB-1165
> URL: http://jira.jboss.com/jira/browse/JBESB-1165
> Project: JBoss ESB
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Rosetta
> Affects Versions: 4.2.1 IR1
> Reporter: Daniel Bevenius
> Assigned To: Daniel Bevenius
> Priority: Minor
> Fix For: 4.2.1 IR2
>
>
> Arrays don' get populated with objects from the xml.
> This is what fromXmlToObject looks like right now:
> xstream.unmarshal( reader, root );
> If the root variable refers to an ArrayList with will not get populated but instead be empty.
> If I change this to
> Object obj = xstream.unmarshal( reader, root );
> The variable obj will be an instance of ArrayList and be populated.
> I've written a unit test and will read up on the XStream docs to figure out the reason for all this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the esb-issues
mailing list