XStream
  1. XStream
  2. XSTR-752

omitField() does not take into account the members in parent class

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Not A Bug
    • Affects Version/s: 1.4.6
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      Ex :
      public abstract class A

      { private int id; }

      public class B extends A

      { ... }

      If I omit id in serialization of class B like this :
      xStream.omitField(B.class, "id");

      It doesn't work, XStream still serializes "id".

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          CHU Toan
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: