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

Cyrus Katrak updated THRIFT-589:
--------------------------------


Changes made, now using the FIELD_NAME constants

test:
     [java] In JSON Proto test
     [java] Writing ooe
     [java] Reading ooe
     [java] Comparing ooe
     [java] Writing hm
     [java] Reading hm
     [java] Comparing hm
     [java] Writing base
     [java] Reading base
     [java] Comparing base
     [java] Size in compact protocol: 116
     [java] Size in compact protocol: 145
     [java] Size in compact protocol: 331
     [java] Size in compact protocol: 625
     [java] <TestUnion i32_field:25>

BUILD SUCCESSFUL


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

Reply via email to