harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "spark shen (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1066) [classlib][luni] java.util.TreeMap.headMap(Object) & tailMap(Object) methods do not return serializable SortedMap
Date Fri, 04 Aug 2006 08:47:14 GMT
[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


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<Integer, Double> map = new TreeMap<Integer, Double>();
        map.put(1, 2.1);
        map.put(2, 3.1);
        map.put(3, 4.5);
        map.put(7, 21.3);
        SortedMap<Integer, Double> headMap = map.headMap(2);
        assertTrue(headMap instanceof Serializable);

        SortedMap<Integer, Double> 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

        

Mime
View raw message