You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Nathan Marz (JIRA)" <ji...@apache.org> on 2010/04/21 12:10:50 UTC
[jira] Updated: (THRIFT-763) Variable capture bug in generated
struct compareTo
[ https://issues.apache.org/jira/browse/THRIFT-763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nathan Marz updated THRIFT-763:
-------------------------------
Attachment: struct_compare.patch
> 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.