Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 80712 invoked from network); 22 Nov 2006 08:04:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Nov 2006 08:04:24 -0000 Received: (qmail 37334 invoked by uid 500); 22 Nov 2006 08:04:34 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 37310 invoked by uid 500); 22 Nov 2006 08:04:34 -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 37301 invoked by uid 99); 22 Nov 2006 08:04:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Nov 2006 00:04:34 -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; Wed, 22 Nov 2006 00:04:23 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 779457142C3 for ; Wed, 22 Nov 2006 00:04:03 -0800 (PST) Message-ID: <15848718.1164182643487.JavaMail.jira@brutus> Date: Wed, 22 Nov 2006 00:04:03 -0800 (PST) From: "Tony Wu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2256) [classlib][luni]should throw NPE when put/get a null value to/from env map. In-Reply-To: <29159672.1164182642125.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-2256?page=all ] Tony Wu updated HARMONY-2256: ----------------------------- Description: The testcase below passed on RI but failed on Harmony. ProcessBuilder pb = new ProcessBuilder("Arg1", "Arg2", "Arg3"); Map env = pb.environment(); try { env.put(null,""); fail("should throw NPE."); } catch (NullPointerException e) { // expected; } try { env.put("",null); fail("should throw NPE."); } catch (NullPointerException e) { // expected; } try { env.get(null); fail("should throw NPE."); } catch (NullPointerException e) { // expected; } was: The testcase below passed on RI but failed on Harmony. ProcessBuilder pb = new ProcessBuilder("Arg1", "Arg2", "Arg3"); Map env = pb.environment(); System.out.println(env.getClass()); try { env.put(null,""); fail("should throw NPE."); } catch (NullPointerException e) { // expected; } try { env.put("",null); fail("should throw NPE."); } catch (NullPointerException e) { // expected; } try { env.get(null); fail("should throw NPE."); } catch (NullPointerException e) { // expected; } > [classlib][luni]should throw NPE when put/get a null value to/from env map. > --------------------------------------------------------------------------- > > Key: HARMONY-2256 > URL: http://issues.apache.org/jira/browse/HARMONY-2256 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Tony Wu > Attachments: harmony-2256.diff > > > The testcase below passed on RI but failed on Harmony. > ProcessBuilder pb = new ProcessBuilder("Arg1", "Arg2", "Arg3"); > Map env = pb.environment(); > try { > env.put(null,""); > fail("should throw NPE."); > } catch (NullPointerException e) { > // expected; > } > try { > env.put("",null); > fail("should throw NPE."); > } catch (NullPointerException e) { > // expected; > } > try { > env.get(null); > fail("should throw NPE."); > } catch (NullPointerException e) { > // expected; > } -- 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