[
https://issues.apache.org/jira/browse/THRIFT-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kamil Sałaś reassigned THRIFT-1775:
-----------------------------------
Assignee: Kamil Sałaś
> 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
> Assignee: Kamil Sałaś
> 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