[ 
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

Offline Philip suggested it might be better to map short to:

{"type": "int", "java-class": "java.lang.Short"}

I like this approach better.  Here's a version of the patch that implements it.

> 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, AVRO-249.patch, 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.

Reply via email to