Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 61616 invoked from network); 12 May 2009 05:26:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 May 2009 05:26:10 -0000 Received: (qmail 33471 invoked by uid 500); 12 May 2009 05:26:10 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 33412 invoked by uid 500); 12 May 2009 05:26:10 -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 33391 invoked by uid 99); 12 May 2009 05:26:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 05:26:09 +0000 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, 12 May 2009 05:26:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8BEB4234C004 for ; Mon, 11 May 2009 22:25:45 -0700 (PDT) Message-ID: <149703228.1242105945558.JavaMail.jira@brutus> Date: Mon, 11 May 2009 22:25:45 -0700 (PDT) From: "Kevin Zhou (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-6203) [classlib][luni] java.util.Hashtable.remove(.) throws StackOverflowError while RI doesn't MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [classlib][luni] java.util.Hashtable.remove(.) throws StackOverflowError while RI doesn't ----------------------------------------------------------------------------------------- Key: HARMONY-6203 URL: https://issues.apache.org/jira/browse/HARMONY-6203 Project: Harmony Issue Type: Bug Components: Classlib Affects Versions: 5.0M9 Reporter: Kevin Zhou Fix For: 5.0M10 Given a test case below [1], RI passes it while HARMONY throws a java.lang.StackOverflowError error. The stack trace is given as [2], this error is thrown due to its hashCode method. [1] Test Case: public void test_HashTable_remove() { Hashtable hashTable = new Hashtable(); Set keySet = hashTable.keySet(); hashTable.put(hashTable, keySet); hashTable.remove(hashTable); } [2] Stack Trace: java.lang.StackOverflowError at java.util.Collections$SynchronizedCollection.iterator(Collections.java:449) at java.util.Hashtable.hashCode(Hashtable.java:541) at java.util.AbstractSet.hashCode(AbstractSet.java:79) at java.util.Collections$SynchronizedSet.hashCode(Collections.java:832) at java.util.Hashtable.hashCode(Hashtable.java:547) at java.util.AbstractSet.hashCode(AbstractSet.java:79) at java.util.Collections$SynchronizedSet.hashCode(Collections.java:832) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.