Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 86098 invoked from network); 19 Sep 2006 12:46:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2006 12:46:03 -0000 Received: (qmail 28370 invoked by uid 500); 19 Sep 2006 12:46:03 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 28208 invoked by uid 500); 19 Sep 2006 12:46:02 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 28184 invoked by uid 99); 19 Sep 2006 12:46:02 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2006 05:46:02 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([209.237.227.198:46000] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 5F/80-27824-786EF054 for ; Tue, 19 Sep 2006 05:45:59 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8541C714302 for ; Tue, 19 Sep 2006 12:42:24 +0000 (GMT) Message-ID: <28462965.1158669744543.JavaMail.jira@brutus> Date: Tue, 19 Sep 2006 05:42:24 -0700 (PDT) From: "Alexey Petrenko (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-1492) [classlib][luni] Constructor of HashMap throw unexpected exception In-Reply-To: <27608056.1158637042424.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1492?page=comments#action_12435773 ] Alexey Petrenko commented on HARMONY-1492: ------------------------------------------ I'm not sure that this is a valid issue to. As far as I understood the issue is that Harmony calls put method in constructor while RI does not. Right? If so I do not see any issue here. > [classlib][luni] Constructor of HashMap throw unexpected exception > ------------------------------------------------------------------ > > Key: HARMONY-1492 > URL: http://issues.apache.org/jira/browse/HARMONY-1492 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: spark shen > > Below tests pass on RI, but fails on Harmony: > public class SubMapTest extends TestCase { > public void testSubclass() { > HashMap map = new HashMap(); > map.put("a", "a"); > SubMap map2 = new SubMap(map); > } > } > class SubMap extends HashMap { > public SubMap(Map m) { > super(m); > } > public V put(K key, V value) { > throw new RuntimeException(); > } > } > I will attach a patch soon. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira