Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F9FC77AF for ; Thu, 6 Oct 2011 20:11:56 +0000 (UTC) Received: (qmail 96908 invoked by uid 500); 6 Oct 2011 20:11:53 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 96829 invoked by uid 500); 6 Oct 2011 20:11:53 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 96790 invoked by uid 99); 6 Oct 2011 20:11:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 20:11:53 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 20:11:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 001992AC55F for ; Thu, 6 Oct 2011 20:11:32 +0000 (UTC) Date: Thu, 6 Oct 2011 20:11:31 +0000 (UTC) From: "Scott Carey (Commented) (JIRA)" To: dev@avro.apache.org Message-ID: <603665312.4912.1317931892001.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1790530745.56005.1302724565766.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AVRO-803) Java generated Avro classes make using Avro painful and surprising MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122222#comment-13122222 ] Scott Carey commented on AVRO-803: ---------------------------------- Sounds good to me. One thing though: "java":"String" I think we may want to use the avro reserved namespace on this property to avoid collisions. Perhaps "avro.java.stringImpl":"String" ? > Java generated Avro classes make using Avro painful and surprising > ------------------------------------------------------------------ > > Key: AVRO-803 > URL: https://issues.apache.org/jira/browse/AVRO-803 > Project: Avro > Issue Type: Improvement > Components: java > Affects Versions: 1.5.0 > Environment: Any > Reporter: Sam Pullara > Fix For: 1.6.0 > > Attachments: Foo.java > > > Currently the Avro generated Java classes expose CharSequence in their API. However, you cannot use any old CharSequence when interacting with them. In fact, you have to use the Utf8 class if you want to get consistent results. I think that Avro should work with any CharSequence if that is the API. Here is an example where this happens: > https://github.com/spullara/avro-generated-code/blob/master/src/test/java/AnnoyingTest.java > That prints out 'false' three times unexpectedly. If you can't get it to print 'true' three times then you should probably change it back to Utf8. -- 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