[
https://issues.apache.org/jira/browse/THRIFT-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13679062#comment-13679062
]
Hudson commented on THRIFT-1775:
--------------------------------
Integrated in Thrift #704 (See [https://builds.apache.org/job/Thrift/704/])
Thrift-1775: (Revision d522421d7f8260fa180a607ab7db5af02b7a16a2)
Result = SUCCESS
> 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