santiagomed commented on PR #3414:
URL: https://github.com/apache/thrift/pull/3414#issuecomment-4300615475

   Good call. I added `ProtocolErrorKind::EmptyUnion = 7` to the runtime 
library and updated both sides of the codegen to use it. The union deserializer 
now emits `EmptyUnion` instead of `InvalidData`, and the struct-level catch arm 
matches on `e.kind == ProtocolErrorKind::EmptyUnion` instead of the string 
check. Also added an integration test covering the unknown variant path.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to