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

Issues with Java struct validation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9
    • 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

        1. thrift-317.patch
          3 kB
          Bryan Duxbury

        Activity

          People

            bryanduxbury Bryan Duxbury
            bryanduxbury Bryan Duxbury
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: