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

Reply via email to