Adam Beberg created THRIFT-3511:
-----------------------------------

             Summary: TBase missing validate(). Errors when py:dynamic used.
                 Key: THRIFT-3511
                 URL: https://issues.apache.org/jira/browse/THRIFT-3511
             Project: Thrift
          Issue Type: Bug
          Components: Python - Compiler
            Reporter: Adam Beberg


When py:dynamic flag is used to compile structs, they inherit from TBase, which 
doesn't have the validate() method.

AttributeError: 'Foo' object has no attribute 'validate'

The generated thrift_spec is missing the info needed to distinguish between 
require and optionals (spec[4] has multiple meanings?), and validate isn't 
being called in read() and write() to protect wire formats.

Related to THRIFT-1732



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to