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: