You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2009/12/04 01:12:20 UTC

[jira] Updated: (AVRO-249) in reflection, represent Java short as fixed data

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

Doug Cutting updated AVRO-249:
------------------------------

    Attachment: AVRO-249.patch

With this patch, reflection maps short values to the schema:

{"type": "fixed", "name": "java.lang.Short", "size": 2}.

Tests are added for arrays of shorts.


> in reflection, represent Java short as fixed data
> -------------------------------------------------
>
>                 Key: AVRO-249
>                 URL: https://issues.apache.org/jira/browse/AVRO-249
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>             Fix For: 1.3.0
>
>         Attachments: AVRO-249.patch
>
>
> Currently the Java reflect API treats shorts as ints.  This fails however to naturally handle shorts in arrays and other containers.  It would be better if we used a distinct type for reflected Java short values.

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