Return-Path: X-Original-To: apmail-avro-user-archive@www.apache.org Delivered-To: apmail-avro-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CF2092887 for ; Wed, 27 Apr 2011 18:07:49 +0000 (UTC) Received: (qmail 7776 invoked by uid 500); 27 Apr 2011 18:07:49 -0000 Delivered-To: apmail-avro-user-archive@avro.apache.org Received: (qmail 7731 invoked by uid 500); 27 Apr 2011 18:07:49 -0000 Mailing-List: contact user-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@avro.apache.org Delivered-To: mailing list user@avro.apache.org Received: (qmail 7723 invoked by uid 99); 27 Apr 2011 18:07:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2011 18:07:49 +0000 X-ASF-Spam-Status: No, hits=1.1 required=5.0 tests=NO_RDNS_DOTCOM_HELO,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.145.54.172] (HELO mrout2.yahoo.com) (216.145.54.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2011 18:07:41 +0000 Received: from sp1-ex07cas03.ds.corp.yahoo.com (sp1-ex07cas03.ds.corp.yahoo.com [216.252.116.151]) by mrout2.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id p3RI6kw9059378 for ; Wed, 27 Apr 2011 11:06:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=yahoo-inc.com; s=cobra; t=1303927606; bh=HfNgV6W25OlDbvpwx/C9zAb10sATYTciJi3jK1RJ7mQ=; h=From:To:Date:Subject:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=td6DZA0nT2eZQhNV/X8aJtI8dxyiPtTzEXYGR4NTkCYeVo/HHSuv6Zn537KN49FmR SPt7Hz0v/DMVVNo+2HIxvmvvfEk4K7Vpl3YGxDQGHSZ4GhNCmamcRBQIXELPI1UBU6 MV/y8pK65hvnMfhO9BunKmp0lWngZtZyg0XN6Klo= Received: from SP1-EX07VS02.ds.corp.yahoo.com ([216.252.116.135]) by sp1-ex07cas03.ds.corp.yahoo.com ([216.252.116.151]) with mapi; Wed, 27 Apr 2011 11:06:46 -0700 From: Markus Weimer To: "user@avro.apache.org" Date: Wed, 27 Apr 2011 11:06:45 -0700 Subject: Re: runtime error when casting Array to String[] Thread-Topic: runtime error when casting Array to String[] Thread-Index: AcwFBd7lVEEH9VODTcKGUzO+vT4Ikw== Message-ID: <290C7E32-132A-4F67-9C1A-8EE7EC402C40@yahoo-inc.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, > Do you guys have this problem when casting Array to String[]? > Am I missing something here :( whenever you ask for an "array" in the schema, the avro specific compiler g= ives you a java.util.List, which cannot be cast to a Java array. I'm person= ally pretty interested in a way around this, as my data usually consists of= primitive type arrays, where the overhead for a Object Collection can be p= rohibitive. Take care, Markus=