You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Nikolay Kuznetsov (JIRA)" <ji...@apache.org> on 2006/12/04 19:10:22 UTC

[jira] Created: (HARMONY-2449) [classlib] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.

[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


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

        

[jira] Updated: (HARMONY-2449) [classlib][beans] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2449?page=all ]

Alexei Zakharov updated HARMONY-2449:
-------------------------------------

    Summary: [classlib][beans] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.  (was: [classlib] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.)

> [classlib][beans] 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

        

[jira] Updated: (HARMONY-2449) [classlib] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.

Posted by "Nikolay Kuznetsov (JIRA)" <ji...@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

        

[jira] Updated: (HARMONY-2449) [classlib][beans] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.

Posted by "Kevin Zhou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Zhou updated HARMONY-2449:
--------------------------------

    Attachment: HARMONY-2449.diff

Would you please help to try this patch?
If it works, I will commit the patch after code freeze.

> [classlib][beans] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2449
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2449
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>            Reporter: Nikolay Kuznetsov
>            Priority: Minor
>         Attachments: HARMONY-2449.diff, 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-2449) [classlib][beans] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison resolved HARMONY-2449.
----------------------------------

    Fix Version/s: 5.0M15
       Resolution: Fixed

Thanks Kevin for your attention to detail!

Patch applied to BEANS module at repo revision r954547.

Please verify it was applied as you expected.


> [classlib][beans] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2449
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2449
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>            Reporter: Nikolay Kuznetsov
>            Assignee: Tim Ellison
>            Priority: Minor
>             Fix For: 5.0M15
>
>         Attachments: HARMONY-2449.diff, 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-2449) [classlib][beans] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12878649#action_12878649 ] 

Hudson commented on HARMONY-2449:
---------------------------------

Integrated in Harmony-1.5-head-linux-x86_64 #850 (See [http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/850/])
    Apply patch HARMONY-2449 ([classlib][beans] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter)


> [classlib][beans] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2449
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2449
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>            Reporter: Nikolay Kuznetsov
>            Assignee: Tim Ellison
>            Priority: Minor
>             Fix For: 5.0M15
>
>         Attachments: HARMONY-2449.diff, 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-2449) [classlib][beans] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-2449:
------------------------------------

    Assignee: Tim Ellison

> [classlib][beans] java.beans.DefaultPersistenceDelegate.mutatesTo() should throw NPE for null parameter.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2449
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2449
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>            Reporter: Nikolay Kuznetsov
>            Assignee: Tim Ellison
>            Priority: Minor
>             Fix For: 5.0M15
>
>         Attachments: HARMONY-2449.diff, 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.
-
You can reply to this email to add a comment to the issue online.