Union structs should have generated methods to test whether a specific field is currently set ----------------------------------------------------------------------------------------------
Key: THRIFT-1199 URL: https://issues.apache.org/jira/browse/THRIFT-1199 Project: Thrift Issue Type: Improvement Components: Java - Compiler Reporter: Piotr Kozikowski Priority: Trivial For example, in the following union {code} union MyUnion { 1: string my_field1; 2: string my_field2; } {code} it would be nice to be able to do something like {{boolean test = myUnion.is_my_field1;}} as an alternative to {{boolean test = (myUnion.getSetField() == _Fields.MY_FIELD1);}} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira