Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-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 DB54FD494 for ; Thu, 15 Nov 2012 09:21:17 +0000 (UTC) Received: (qmail 89246 invoked by uid 500); 15 Nov 2012 09:21:17 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 89042 invoked by uid 500); 15 Nov 2012 09:21:16 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 89029 invoked by uid 99); 15 Nov 2012 09:21:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 09:21:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andreas.veithen@gmail.com designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-ia0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 09:21:09 +0000 Received: by mail-ia0-f173.google.com with SMTP id m10so1071034iam.32 for ; Thu, 15 Nov 2012 01:20:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=MYmUI9TC38Z6RUv0vh82DC9Cc6ClZUPs+diXhnkUsJA=; b=NmTH0/L3yvekIlt+tb6ogryu+08kSOhZvgARl3Oyxcr0eI0pAhz8oHClgs30GWvle6 6k3ncEvCVyuJQPJYHHxdj01foxnrKhkVB7ynMfy7AQb5xhO0VCM5gTeTcza66+/L7b2D kYbfybx2Q61DY4lciopKiuYxftb9KvokouSVvT3E4vqht7SuDCRqJoYwZjNJzhtWVwGc az2K1BJNEDlvat5Y86gMzyN+QE1Yj3WLDLtUBheV7tfzvuSBJsezbuY20BfFNRenLHyh XDkV4Qp/OIy8h7L3RFK7EyovXc4FMim9P9sMYuNivZY4RgfoeipXgquuThFWGMYiLX3/ Fvrw== Received: by 10.50.202.104 with SMTP id kh8mr383032igc.21.1352971249440; Thu, 15 Nov 2012 01:20:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.121.12 with HTTP; Thu, 15 Nov 2012 01:20:29 -0800 (PST) In-Reply-To: References: <001301cdbe03$412b2ba0$c38182e0$@lampreynetworks.com> From: Andreas Veithen Date: Thu, 15 Nov 2012 10:20:29 +0100 Message-ID: Subject: Re: Axiom Class cast exception on iterator of that class! To: java-dev Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Nov 11, 2012 at 9:48 PM, James Grahn wrote: > On Sun, Nov 11, 2012 at 2:26 PM, Andreas Veithen > wrote: >> The Javadoc says this: "Get an iterator over all descendants of the >> container. The items are returned in document order. Note that >> attributes and namespace declarations are not considered descendants." >> It doesn't restrict the result to elements. > > This kind of casting confusion could be resolved with the use of > generics. Any plans for updating the public APIs in that way in the > future? That is planned for Axiom 1.3: http://ws.apache.org/axiom/roadmap.html > James > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org > For additional commands, e-mail: java-dev-help@axis.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org