harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2449) [classlib] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.
Date Mon, 04 Dec 2006 18:13:23 GMT
     [ 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

        

Mime
View raw message