XStream
  1. XStream
  2. XSTR-667

Can't serialize empty arrayList with JsonHierarchicalStreamDriver

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major 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()));
        
      1. my-app.tar.gz
        10 kB
        Marcial Atiénzar Navarro

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Marcial Atiénzar Navarro
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: