You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2009/09/21 18:53:16 UTC

[jira] Resolved: (THRIFT-578) Union compareTo is broken

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

Bryan Duxbury resolved THRIFT-578.
----------------------------------

    Resolution: Fixed

I just committed this.

> Union compareTo is broken
> -------------------------
>
>                 Key: THRIFT-578
>                 URL: https://issues.apache.org/jira/browse/THRIFT-578
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (Java)
>    Affects Versions: 0.2
>            Reporter: Bryan Duxbury
>            Assignee: Bryan Duxbury
>             Fix For: 0.2
>
>         Attachments: thrift-578.patch
>
>
> The generated compareTo method for comparable unions is incorrect. It currently only compares the values of the unions when the unions' set fields are different, which will very likely lead to incomparable situations.

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