XStream
  1. XStream
  2. XSTR-280

omitField() and aliasField() does not get taken into account by SerializableConverter

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None

      Description

      The XStream.omitField() method behaves as expected for ReflectionConverter. However, when an object uses custom serialization (writeObject()) and calls ObjectOutputStream.defaultWriteOut(), the fields are not omitted. This is because SerializableConverter does not take into account these fields.

      Example of this can be seen here: http://article.gmane.org/gmane.comp.java.xstream.user/1478

      1. doMarshal_patch.java
        7 kB
        brien colwell
      2. patch-omitted-inherited-fields.txt
        8 kB
        Hinse ter Schuur
      3. patch-omitted-inherited-fields-test.txt
        4 kB
        Hinse ter Schuur

        Issue Links

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Joe Walnes
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: