1

I have two classes:

class ObjectCollection {
    Object[] collection;
}

and

class Object extends AnotherObject {

}

Now, on serializing these with XStream, it gets everything right, but it also adds data from AnotherObject to each Object. Is there a way to tell XStream to ignore elements from the extended class not wanted?

eyecreate
  • 1,017
  • 3
  • 14
  • 26

1 Answers1

0

See this post. However, if the objects should be the same, why have 2 classes?

Community
  • 1
  • 1