[ 
https://issues.apache.org/jira/browse/AVRO-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907831#action_12907831
 ] 

Philip Zeyliger commented on AVRO-605:
--------------------------------------

BTW, a caveat for those using this: Utf8("foo").equals("foo") is still false, 
so it's easy to get into a false sense of security with using Utf8's and 
Strings interchangeably.

> Java: make Utf8 implement CharSequence
> --------------------------------------
>
>                 Key: AVRO-605
>                 URL: https://issues.apache.org/jira/browse/AVRO-605
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>             Fix For: 1.4.0
>
>         Attachments: AVRO-605.patch, AVRO-605.patch, AVRO-605.patch
>
>
> If Utf8 implemented CharSequence then interfaces could change to specify 
> CharSequence and accept Utf8 or String interchangeably.
> This would be mostly back-compatible, except the method signatures of 
> generated protocols would be different, so implementations would need to be 
> updated.

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