[ https://issues.apache.org/jira/browse/AVRO-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12786084#action_12786084 ]
Philip Zeyliger commented on AVRO-249: -------------------------------------- Using "java.lang.Short" in a name seems suboptimal. Could you just call it "Short"? It seems like the schemas induced by reflection should ideally be language-neutral. It also seems pretty arbitrary that integers, longs, and floats are represented with zigzag varint encoding, but shorts are always two bytes. Have you considered using an approach similar to the annotation approach in AVRO-242 for this? Even for something like longs, you're sometimes going to want to hint about what encoding to use (fixed vs. varint). -- Philip > 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.