[esb-issues] [JBoss JIRA] Created: (JBESB-1165) XStreamToObject cannot handle arrays

Daniel Bevenius (JIRA) jira-events at lists.jboss.org
Fri Oct 12 00:54:14 EDT 2007


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


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