KarboniteKream opened a new pull request, #2765:
URL: https://github.com/apache/thrift/pull/2765

   Client: java
   
   This PR is a follow-up to #2619, and applies the same change to all other 
types. This way, the generated field meta data is the same for all types, 
regardless of the order of definitions in the `.thrift` file.
   
   The main motivation for this PR was to extend the change in the previous PR 
to enums. Then in order to keep the behavior consistent across all types, I 
applied it to other types. I've extended the tests to cover all cases.
   
   However, there is one behavioral change when it comes to typedefs. This PR 
and #2619 use `get_true_type()`, which means that whenever the field definition 
uses a typedef'd struct or enum (for example `typedef MyType MyTypedef`), the 
generated metadata will not use `FieldValueMetaData(..., "MyTypedef")`, but 
`FieldValueMetaData(..., MyType.class)` instead. But when we use something like 
`typedef i8 MyInt`, we generate `FieldValueMetaData(..., "MyInt")`. Is this 
okay?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@thrift.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to