harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Liang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-2356) [classlib][luni]The Map from System.getEnv should throw NullPointerException while get(null) and is not modifiable.
Date Thu, 30 Nov 2006 08:21:22 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2356?page=all ]

Richard Liang resolved HARMONY-2356.
------------------------------------

    Resolution: Fixed

Hello Leo

The patch has been applied at revision r480871 with minor modifications, thanks a lot for
this enhancement, please verify that the problem is fully fixed as you expected.

Best regards,
Richard. 

> [classlib][luni]The Map from System.getEnv should throw NullPointerException while get(null)
and is not modifiable.
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2356
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2356
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Richard Liang
>         Attachments: patch-2356.diff, patch-2356.diff
>
>
> Here is the testcase:
>  public void testUnmodifiableMap()
>     {
>         Map map = System.getEnv();
>                 
>         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