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/04 23:40:58 UTC
[jira] [Created] (THRIFT-1775) Java ignores default value(s) for
unions
Jens Geyer created THRIFT-1775:
----------------------------------
Summary: 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
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