Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 62334 invoked from network); 18 Nov 2008 08:26:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Nov 2008 08:26:35 -0000 Received: (qmail 49369 invoked by uid 500); 18 Nov 2008 08:26:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 49350 invoked by uid 500); 18 Nov 2008 08:26:43 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 49337 invoked by uid 99); 18 Nov 2008 08:26:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2008 00:26:43 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2008 08:25:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7A04D234C28A for ; Tue, 18 Nov 2008 00:25:44 -0800 (PST) Message-ID: <703032362.1226996744498.JavaMail.jira@brutus> Date: Tue, 18 Nov 2008 00:25:44 -0800 (PST) From: "Kevin Zhou (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-6017) [classlib] [luni] (Iterator) Hashtable.keys() throws ClassCastException In-Reply-To: <261444928.1226572904408.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Zhou closed HARMONY-6017. ------------------------------- > [classlib] [luni] (Iterator) Hashtable.keys() throws ClassCastException > ----------------------------------------------------------------------- > > Key: HARMONY-6017 > URL: https://issues.apache.org/jira/browse/HARMONY-6017 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M7 > Reporter: Kevin Zhou > Assignee: Tim Ellison > Fix For: 5.0M9 > > Attachments: HARMONY-6017.diff > > Original Estimate: 48h > Remaining Estimate: 48h > > Given a test case [1], HARMONY will throws ClassCastException while RI works well. This also occurs when cast Hashtable.elements() to Iterator and cast Hashtable.keySet().iterator() to Enumeration. > [1] > public void test_HashTable_keys() { > Hashtable hashTable = new Hashtable(); > hashTable.put("key", "value"); > // cast Enumeration to Iterator > Iterator iterator = (Iterator) hashTable.keys(); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.