You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2012/12/11 23:45:21 UTC

[jira] [Resolved] (THRIFT-1765) Incorrect error message printed for null or negative keys

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

Jens Geyer resolved THRIFT-1765.
--------------------------------

    Resolution: Fixed

I just committed this.
                
> Incorrect error message printed for null or negative keys
> ---------------------------------------------------------
>
>                 Key: THRIFT-1765
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1765
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (General)
>         Environment: MinGW, Windows
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>             Fix For: 1.0
>
>         Attachments: THRIFT-1765_Incorrect_error_message_printed_for_null_or_negative_keys.patch
>
>
> The following IDL file 
> {code}
> struct test {
>   0 : string zero,
>   1 : string one,
>   2 : string two
> }
> {code}
> produced this Output:
> {code}
> c:\> thrift --allow-neg-keys -gen csharp .\testcase.thrift
> Scanning testcase for includes
> [WARNING:testcase:2] Negative field key (0) differs from what would be auto-assigned by thrift (0).
> {code}
> which is obviously wrong, since the latter value is of course -1, but not 0. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira