You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2008/06/18 06:58:45 UTC

[jira] Resolved: (THRIFT-4) Default values of non-primitive types aren't copied on new object creation

     [ https://issues.apache.org/jira/browse/THRIFT-4?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Duxbury resolved THRIFT-4.
--------------------------------

    Resolution: Fixed

Resolved in THRIFT-38 commit.

> Default values of non-primitive types aren't copied on new object creation
> --------------------------------------------------------------------------
>
>                 Key: THRIFT-4
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4
>             Project: Thrift
>          Issue Type: Bug
>          Components: Library (Ruby)
>            Reporter: Bryan Duxbury
>            Assignee: Bryan Duxbury
>         Attachments: equality_and_defaults_release.patch, thrift-4.patch
>
>
> If you create a Thrift type that has a default value for a field, and the default value is non-primitive (a hash, thrift object, array, etc), then all instances of that class share the same default object instead of copies of that object.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.