Generated Java code does not compile if struct contains fields that are all 
uppercase
-------------------------------------------------------------------------------------

                 Key: THRIFT-403
                 URL: https://issues.apache.org/jira/browse/THRIFT-403
             Project: Thrift
          Issue Type: Bug
          Components: Compiler (Java)
         Environment: OS X 10.5
            Reporter: Mathias Herberts


Generated Java code contains definition of field ids which are integer static 
fields whose names are those of their associated field turned to uppercase.

This is fine as long as no struct field is all uppercase, if one such field 
exists, the generated code won't compile as the same field will be defined 
twice in the generated class.

This could be solved by either making the compiler complain of uppercase fields 
in the struct (no suitable I'd say) or generating a field id name that contains 
a prefix or suffix which will make sure the name won't be the same as the 
associated field.

-- 
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