|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
To unsubscribe from this list please visit:

Actually this also applies to the JavaMethodConverter and JavaFieldConverter. However, it is not possible to activate this in general, because the mapping between a serialized type name and a class name is also influenced by the settings to default implementation, type aliases and XStream does here not separate between primitive types and their object counterpart (it uses the same aliases for both).
With aliasing support for these converters you would get following effect:
Class[] origin = {List.class, ArrayList.class}; String xml xstream.toXml(origin); assertEquals( "<java-class-array>\n" + " <java-class>list<java-class>\n" + " <java-class>list<java-class>\n" + "</java-class-array>" ); Class[] serialized = (Class[])xstream.fromXml(xml); assertEquals(ArrayList.class, serialized[0]); assertEquals(ArrayList.class, serialized[1]);