Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 64347 invoked from network); 16 Apr 2009 09:10:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2009 09:10:36 -0000 Received: (qmail 97604 invoked by uid 500); 16 Apr 2009 09:10:36 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 97565 invoked by uid 500); 16 Apr 2009 09:10:36 -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 97556 invoked by uid 99); 16 Apr 2009 09:10:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 09:10:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 09:10:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0484E234C04C for ; Thu, 16 Apr 2009 02:10:15 -0700 (PDT) Message-ID: <1962420945.1239873015017.JavaMail.jira@brutus> Date: Thu, 16 Apr 2009 02:10:15 -0700 (PDT) From: "Regis Xu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-6108) [classlib] [prefs] Preferences.nodeExists(null) should throw NPE when Preferences node has been removed In-Reply-To: <1597193457.1236134816410.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Regis Xu reassigned HARMONY-6108: --------------------------------- Assignee: Regis Xu > [classlib] [prefs] Preferences.nodeExists(null) should throw NPE when Preferences node has been removed > ------------------------------------------------------------------------------------------------------- > > Key: HARMONY-6108 > URL: https://issues.apache.org/jira/browse/HARMONY-6108 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M8 > Reporter: Kevin Zhou > Assignee: Regis Xu > Fix For: 5.0M9 > > Attachments: HARMONY-6108.diff > > Original Estimate: 24h > Remaining Estimate: 24h > > Given a test scenario[1], conduct it on RI and HARMONY. > RI works well, while HARMONY fails on the 2nd try-catch. > When a given Preferences node is removed, Preferences.nodeExist(null) should throw NPE rather than IllegalStateException. > [1] > public void test_nodeExists() throws BackingStoreException { > AbstractPreferences test = (AbstractPreferences) Preferences.userRoot() > .node("test"); > // 1st > try { test.nodeExists(null); fail("should throw NullPointerException"); } catch (NullPointerException e) { // Expected } > test.removeNode(); > // 2nd > try { test.nodeExists(null); fail("should throw NullPointerException"); } } catch (NullPointerException e) { // Expected } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.