You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Kamil Sałaś (JIRA)" <ji...@apache.org> on 2013/02/03 22:18:13 UTC

[jira] [Updated] (THRIFT-1775) Java ignores default value(s) for unions

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

Kamil Sałaś updated THRIFT-1775:
--------------------------------

    Attachment: 0001-Thrift-1775.patch

Fixed! Any comments are welcome! 
                
> Java ignores default value(s) for unions
> ----------------------------------------
>
>                 Key: THRIFT-1775
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1775
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Compiler
>            Reporter: Jens Geyer
>         Attachments: 0001-Thrift-1775.patch
>
>
> Given the following IDL, the expectation is that the generated code should initialize the one field with the default value accordingly. This is not the case, the value is silently ignored.
> {code}
> union TestCase {
>   1: string one 
>   2: string two = "I am your friendly default"
>   3: string three
> }
> {code}

--
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