Hi, I've been playing with both GWT and Thrift lately and have come up with a solution that might prove of interest for others.
Not knowing if any other solution has been devised yet here is what I came up with. I patched the Java code generation to generate 'issetX' methods that return the value of __isset.x. I also added an option to the Java code generator (gwt) which generates GWT translatable mirror classes (but does not take care of services). Basically those mirror classes are similar to the ones normally generated except they do not extend TBase. They are translated correctly by GWT 1.5. A utility class (called GWT) provides a static method 'convert' which can convert between both versions of the generated classes (this method needs the issetX methods to be ensure the classes being converted are indeed ones generated by the thrift compiler). If anyone is interested I'll gladly contribute this code. Mathias.
