Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.4.1
-
Fix Version/s: 1.4.2
-
Component/s: None
-
Labels:None
Description
- With 1.3.1 we can serialize empty arrays with no Root, like this: []
- With 1.4.x I've an error
- I've attached a maven project to test it:
mvn clean test
- The code is very simple:
final XStream xsJson = new XStream(new JsonHierarchicalStreamDriver()); System.out.println(xsJson.toXML(new ArrayList()));
Fixed in trunk. Thanks for heads-up, this was a really annoying bug.