Can't assign byte fields a default value
----------------------------------------

                 Key: THRIFT-225
                 URL: https://issues.apache.org/jira/browse/THRIFT-225
             Project: Thrift
          Issue Type: Bug
          Components: Compiler (Java)
            Reporter: Bryan Duxbury
            Priority: Minor


If you have a struct like

{{{
struct myStruct {
  byte x = 200;
}
}}}

then the generated code for that default value lacks the necessary (byte) cast 
to avoid a "loss of precision" compiler warning.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to