Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When inheriting from ArrayList or LinkedList the serialized xml will not contain any new members of the object.

      Example test case :

      public class XStreamTest extends TestCase
      {
      public void testInheritance()

      { XStream xs = new XStream(); LinkedListChild test = new LinkedListChild(); test.add("something"); test = (LinkedListChild) xs.fromXML( xs.toXML(test) ); }

      }

      class LinkedListChild extends ArrayList
      {
      private int id = 2;

      public int getId()

      { return id; }

      public void setId(int id)

      { this.id = id; }

      }

        People

        • Assignee:
          Unassigned
          Reporter:
          Tobias Luetke
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: