You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Armaan Sarkar (JIRA)" <ji...@apache.org> on 2011/09/01 20:16:10 UTC
[jira] [Created] (THRIFT-1319) Mismatch between how a union reads
and writes a container
Mismatch between how a union reads and writes a container
---------------------------------------------------------
Key: THRIFT-1319
URL: https://issues.apache.org/jira/browse/THRIFT-1319
Project: Thrift
Issue Type: Bug
Components: Java - Compiler
Affects Versions: 0.8
Reporter: Armaan Sarkar
Assignee: Armaan Sarkar
Currently, the TUnion writes a container (map, list or set) without information regarding the type of element contained while it reads expecting this metadata. Unfortunately, the TUnion serialization test doesn't check for this case (a union with a set container).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (THRIFT-1319) Mismatch between how a union reads
and writes a container
Posted by "Armaan Sarkar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Armaan Sarkar updated THRIFT-1319:
----------------------------------
Attachment: THRIFT-1319_v1.diff
This patch fixes the problem in the java generator (and removes an unnecessary comment). It also amends TestTUnion to catch this.
> Mismatch between how a union reads and writes a container
> ---------------------------------------------------------
>
> Key: THRIFT-1319
> URL: https://issues.apache.org/jira/browse/THRIFT-1319
> Project: Thrift
> Issue Type: Bug
> Components: Java - Compiler
> Affects Versions: 0.8
> Reporter: Armaan Sarkar
> Assignee: Armaan Sarkar
> Attachments: THRIFT-1319_v1.diff
>
>
> Currently, the TUnion writes a container (map, list or set) without information regarding the type of element contained while it reads expecting this metadata. Unfortunately, the TUnion serialization test doesn't check for this case (a union with a set container).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (THRIFT-1319) Mismatch between how a union reads
and writes a container
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury closed THRIFT-1319.
---------------------------------
Resolution: Fixed
Fix Version/s: 0.8
Awesome, I just committed this.
> Mismatch between how a union reads and writes a container
> ---------------------------------------------------------
>
> Key: THRIFT-1319
> URL: https://issues.apache.org/jira/browse/THRIFT-1319
> Project: Thrift
> Issue Type: Bug
> Components: Java - Compiler
> Affects Versions: 0.8
> Reporter: Armaan Sarkar
> Assignee: Armaan Sarkar
> Fix For: 0.8
>
> Attachments: THRIFT-1319_v1.diff
>
>
> Currently, the TUnion writes a container (map, list or set) without information regarding the type of element contained while it reads expecting this metadata. Unfortunately, the TUnion serialization test doesn't check for this case (a union with a set container).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira