[
https://issues.apache.org/jira/browse/THRIFT-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750175#action_12750175
]
Bryan Duxbury commented on THRIFT-573:
--------------------------------------
Perhaps yes, if only because otherwise you could never quietly migrate forward
and drop a field.
> Union can desynchronize in some situations
> ------------------------------------------
>
> Key: THRIFT-573
> URL: https://issues.apache.org/jira/browse/THRIFT-573
> Project: Thrift
> Issue Type: Bug
> Components: Library (Java)
> Affects Versions: 0.2
> Reporter: Bryan Duxbury
> Assignee: Bryan Duxbury
> Priority: Minor
> Fix For: 0.2
>
>
> The TUnion code doesn't deal well with two situations:
> # There are no fields in the union on the wire
> # There is more than one field in the union on the wire
> Both of these situations are detectable. The first should probably result in
> an "unset" union; the second should result in a protocol exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.