Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-33

Unset fields will still be serialized if they are primitives

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      Since primitive types (int, bool, byte, etc.) cannot be null in Java, the Java libraries will serialize "empty" values into their output. This is very bad when you have sparse Thrift structs with many possible fields and only one actually used.

      The Isset logic appears to be partially implemented, but is apparently unused. It seems like the required action is using getters and setters and honoring the isset information appropriately.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bryanduxbury Bryan Duxbury
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: