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

Bryan Duxbury resolved THRIFT-245.
----------------------------------

    Resolution: Fixed

Committed.

> FIELDS constant should contain name of enumerated type for enum fields
> ----------------------------------------------------------------------
>
>                 Key: THRIFT-245
>                 URL: https://issues.apache.org/jira/browse/THRIFT-245
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (Ruby)
>            Reporter: Bryan Duxbury
>            Assignee: Bryan Duxbury
>            Priority: Trivial
>             Fix For: 0.1
>
>         Attachments: thrift-245.patch
>
>
> When a Ruby struct is generated, if the struct has fields that are of 
> enumerated types, it is converted into an i32 field, and no trace of the 
> enumerated type is recorded. I propose we add a new key to the FIELDS 
> entries, :enum_class, that contains the class constant for the enumerated 
> type. This way, you can reflectively determine both that the field is of an 
> enumerated type and which type it is. 

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