Hello,

I've been using thrift for a while now to communicate between java backend and 
flash front-end. Recently I found an issue with the compiler with serialisation 
of structs with un-set optional fields. The generated 'write' method would not 
look at the __isset flag for optional fields, and instead would explicitly 
write all fields, causing issues in validation when structs are deserialized.

The attached file is a suggest fix, inspired from the t_java_generator class.

Please consider adding this fix to the next build.

Thanks,
Ravid



Reply via email to