harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2356) [classlib][luni]Map wrapped by Collections.unmodifiableMap should throw NullPointerException while get(null).
Date Wed, 29 Nov 2006 07:43:21 GMT
[classlib][luni]Map wrapped by Collections.unmodifiableMap should throw NullPointerException
while get(null).
-------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2356
                 URL: http://issues.apache.org/jira/browse/HARMONY-2356
             Project: Harmony
          Issue Type: Bug
            Reporter: Leo Li


Here is the testcase:
 public void testUnmodifiableMap()
    {
        Map map = Collections.unmodifiableMap(new HashMap<String,String>());
        System.out.println(map.getClass());
        
        try {
            map.get(null);
            fail("Should throw NullPointerExcepiton.");
        } catch (NullPointerException e) {
            //expected
        }     
               
    }

RI passes.
Harmony fails.

-- 
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