[ 
https://issues.apache.org/jira/browse/THRIFT-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750173#action_12750173
 ] 

David Reiss commented on THRIFT-573:
------------------------------------

Question about #1: If it is not legal to write an unset union, should it be 
legal to read one?

> 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.

Reply via email to