thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King, III (JIRA)" <>
Subject [jira] [Closed] (THRIFT-3595) Perl Bindings: Set serialization/deserialization differs
Date Fri, 06 Apr 2018 13:11:00 GMT


James E. King, III closed THRIFT-3595.
    Resolution: Unresolved

> Perl Bindings: Set serialization/deserialization differs
> --------------------------------------------------------
>                 Key: THRIFT-3595
>                 URL:
>             Project: Thrift
>          Issue Type: Bug
>          Components: Perl - Compiler
>    Affects Versions: 0.9.1, 0.9.2, 0.9.3
>            Reporter: Adam Millerchip
>            Assignee: James E. King, III
>            Priority: Major
> In the Perl bindings, a Thrift Set is dezerialized as a hashref, but the serialization
code expects an arrayref. This causes the code to die when called if attempting to serialize
a previously dezerialized Set.
> Additionally, it looks like there is a typo in the test that is testing this feature:
> If you change that {{@$setout}} to {{@$setin}}, the test fails.
> It doesn't make much sense to implement a Set in Perl as array, because arrays allow
duplicate entries and are ordered.
> I've written a change for the serialization that correctly expects a hashref:

This message was sent by Atlassian JIRA

View raw message