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

Issues with Java struct validation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9
    • Labels:
      None

      Description

      The generated validate() methods don't call validate() on their child structs directly. Instead, they wait until the child structs' write() method is called. This could lead to structs being partially written to the wire before encountering an invalid substruct. Additionally, users calling validate() directly would not get the expected behavior.

        Attachments

          Activity

            People

            • Assignee:
              bryanduxbury Bryan Duxbury
              Reporter:
              bryanduxbury Bryan Duxbury
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: