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 2009/10/15 03:26:31 UTC

[jira] Resolved: (THRIFT-589) Add Field Name to Field ID Mapping

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

Bryan Duxbury resolved THRIFT-589.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.2
         Assignee: Cyrus Katrak

I just committed this. Thanks for the patch, Cyrus!

> Add Field Name to Field ID Mapping
> ----------------------------------
>
>                 Key: THRIFT-589
>                 URL: https://issues.apache.org/jira/browse/THRIFT-589
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (Java)
>    Affects Versions: 0.2
>            Reporter: Cyrus Katrak
>            Assignee: Cyrus Katrak
>             Fix For: 0.2
>
>         Attachments: thrift589-2.patch, thrift589-3.patch, thrift589.patch
>
>
> The reflection stuff in java thrift is quite useful, but to use it you must know the field id (not the name) of the field you are working with.
> Given a field name, you can obtain the corresponding ID by iterating through the metaDataMap, but it's not ideal.

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