Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 89030 invoked from network); 30 Nov 2006 08:21:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2006 08:21:43 -0000 Received: (qmail 2959 invoked by uid 500); 30 Nov 2006 08:21:52 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 2936 invoked by uid 500); 30 Nov 2006 08:21:52 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 2927 invoked by uid 99); 30 Nov 2006 08:21:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2006 00:21:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2006 00:21:43 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F1EF97142EC for ; Thu, 30 Nov 2006 00:21:22 -0800 (PST) Message-ID: <918646.1164874882988.JavaMail.jira@brutus> Date: Thu, 30 Nov 2006 00:21:22 -0800 (PST) From: "Richard Liang (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-2356) [classlib][luni]The Map from System.getEnv should throw NullPointerException while get(null) and is not modifiable. In-Reply-To: <3335172.1164786201053.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 [ 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