You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Alexander Shigin (JIRA)" <ji...@apache.org> on 2008/07/15 14:15:31 UTC

[jira] Updated: (THRIFT-84) fingerprint depend on appearence order, not field identifiers

     [ https://issues.apache.org/jira/browse/THRIFT-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Shigin updated THRIFT-84:
-----------------------------------

    Attachment: thrift-fingerprint-sort.patch

The attached patch solve the issue.

http://github.com/shigin/thrift/commit/787eec3abcdf435f4a87c4ec4555e02fcc6a84c0

> fingerprint depend on appearence order, not field identifiers
> -------------------------------------------------------------
>
>                 Key: THRIFT-84
>                 URL: https://issues.apache.org/jira/browse/THRIFT-84
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (General)
>            Reporter: Alexander Shigin
>         Attachments: thrift-fingerprint-sort.patch
>
>
> The next two struct produce different fingerprints:
> {code}
>     struct Bonk
>     {
>       2: i32 type
>       1: string message,
>     }
>     struct Bonk
>     {
>       1: string message,
>       2: i32 type
>     }
> {code}

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