Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 26154 invoked from network); 4 Dec 2006 18:13:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2006 18:13:44 -0000 Received: (qmail 24392 invoked by uid 500); 4 Dec 2006 18:13:53 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 24371 invoked by uid 500); 4 Dec 2006 18:13:53 -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 24362 invoked by uid 99); 4 Dec 2006 18:13:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 10:13:53 -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; Mon, 04 Dec 2006 10:13:43 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A14837141E4 for ; Mon, 4 Dec 2006 10:13:23 -0800 (PST) Message-ID: <32320209.1165256003657.JavaMail.jira@brutus> Date: Mon, 4 Dec 2006 10:13:23 -0800 (PST) From: "Nikolay Kuznetsov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2449) [classlib] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter. In-Reply-To: <10203477.1165255822556.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-2449?page=all ] Nikolay Kuznetsov updated HARMONY-2449: --------------------------------------- Attachment: test.java Attached java file demonstrates the problem: RI: java test java.lang.NullPointerException at java.beans.DefaultPersistenceDelegate.definesEquals(DefaultPersistenceDelegate.java:96) at java.beans.DefaultPersistenceDelegate.mutatesTo(DefaultPersistenceDelegate.java:119) at DPD.test1(test.java:29) at test.main(test.java:12) HARMONY ./java test mutatesTo=false > [classlib] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter. > ------------------------------------------------------------------------------------------------- > > Key: HARMONY-2449 > URL: http://issues.apache.org/jira/browse/HARMONY-2449 > Project: Harmony > Issue Type: Bug > Components: Non-bug differences from RI > Reporter: Nikolay Kuznetsov > Priority: Minor > Attachments: test.java > > > Specification for java.beans package says that: > "Unless explicitly stated, null values or empty Strings are not valid parameters for the methods in this package. You may expect to see exceptions if these parameters are used." > However specification does not explicitly states that NPE should be thrown, RI throws NPE if ava.beans.DefaultPersistenceDelegate.mutatesTo() called with null parameters. -- 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