Variable capture bug in generated struct compareTo
--------------------------------------------------

                 Key: THRIFT-763
                 URL: https://issues.apache.org/jira/browse/THRIFT-763
             Project: Thrift
          Issue Type: Bug
            Reporter: Nathan Marz
            Priority: Minor
         Attachments: struct_compare.patch

In the generated compareTo for structs, any field named "other" gets shadowed 
by the local variable other. I've attached a patch to refer to the local field 
explicitly using "this.".

FYI, this is the second time I've run into a variable capture bug. We need to 
be more careful w.r.t. generating local variables.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to