Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 91122 invoked from network); 18 Aug 2006 02:27:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2006 02:27:17 -0000 Received: (qmail 96722 invoked by uid 500); 18 Aug 2006 02:27:17 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 96622 invoked by uid 500); 18 Aug 2006 02:27:17 -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 96611 invoked by uid 99); 18 Aug 2006 02:27:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 19:27:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 19:27:16 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DE9F87142CC for ; Fri, 18 Aug 2006 02:24:18 +0000 (GMT) Message-ID: <32411604.1155867858909.JavaMail.jira@brutus> Date: Thu, 17 Aug 2006 19:24:18 -0700 (PDT) From: "Paulex Yang (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Closed: (HARMONY-1066) [classlib][luni] java.util.TreeMap.headMap(Object) & tailMap(Object) methods do not return serializable SortedMap In-Reply-To: <1974225.1154681234277.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1066?page=all ] Paulex Yang closed HARMONY-1066. -------------------------------- Verified by Spark. > [classlib][luni] java.util.TreeMap.headMap(Object) & tailMap(Object) methods do not return serializable SortedMap > ----------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-1066 > URL: http://issues.apache.org/jira/browse/HARMONY-1066 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: spark shen > Assigned To: Paulex Yang > Attachments: Harmony-1066.diff, Harmony-1066_serialization.diff > > > java.util.TreeMap.headMap(Object) & tailMap(Object) methods > do not return serializable SortedMap. But this is not the case on RI. > Testcase > public void test_headMapLObject_Serializable() { > TreeMap map = new TreeMap(); > map.put(1, 2.1); > map.put(2, 3.1); > map.put(3, 4.5); > map.put(7, 21.3); > SortedMap headMap = map.headMap(2); > assertTrue(headMap instanceof Serializable); > SortedMap tailMap = map.tailMap(3); > assertTrue(tailMap instanceof Serializable); > } > This test case will fail on Harmony, pass on RI. > I will attach a patch to fix this problem. > Best regards -- 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