[prev in list] [next in list] [prev in thread] [next in thread]
List: avro-dev
Subject: [jira] [Updated] (AVRO-897) Map lookup behavior is ill-defined in Java
From: "Garrett Wu (Updated) (JIRA)" <jira () apache ! org>
Date: 2011-09-27 1:40:12
Message-ID: 51235557.1133.1317087612408.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/AVRO-897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Garrett Wu updated AVRO-897:
----------------------------
Attachment: avro-charsequence-map-test.tar.gz
Attached a small test case to better explain what I mean.
> Map lookup behavior is ill-defined in Java
> ------------------------------------------
>
> Key: AVRO-897
> URL: https://issues.apache.org/jira/browse/AVRO-897
> Project: Avro
> Issue Type: Bug
> Affects Versions: 1.5.1
> Reporter: Garrett Wu
> Attachments: avro-charsequence-map-test.tar.gz
>
>
> In Java, an Avro {{"map"}} is a Java {{Map}}. The map keys are type {{"string"}}, \
> which maps to a Java {{CharSequence}}. Clients must know to use {{Utf8}} objects \
> when calling {{get()}} or {{containsKey()}}. Instead, {{GenericDatumReader}} \
> should instantiate a {{Map}} instance with a {{Comparator}} suitable for comparing \
> any type of {{CharSequence}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic