You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2006/03/22 22:06:05 UTC

[jira] Created: (HARMONY-238) java.util.Date(null) should throw IllegalArgumentException not NullPointerException

java.util.Date(null) should throw IllegalArgumentException not NullPointerException
-----------------------------------------------------------------------------------

         Key: HARMONY-238
         URL: http://issues.apache.org/jira/browse/HARMONY-238
     Project: Harmony
        Type: Bug
  Components: Classlib  
    Reporter: Mark Hindess
    Priority: Trivial


RI (1.5.0_06) throws an IllegalArgumentException when the Date(String) constructor is called with null argument but Harmony throws a NullPointerException.


-- 
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] Resolved: (HARMONY-238) java.util.Date(null) should throw IllegalArgumentException not NullPointerException

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-238?page=all ]
     
Stepan Mishura resolved HARMONY-238:
------------------------------------

    Resolution: Fixed

Mark, I've added regression test only - this issue was fixed by fixing HARMONY-259 (so I think that there is no need in checking parameter in Date(String) constructor for null value.)

Regression test was added to LUNI module at repo revision 395134.

Please check that fix for HARMONY-259 resolves this issue too.

> java.util.Date(null) should throw IllegalArgumentException not NullPointerException
> -----------------------------------------------------------------------------------
>
>          Key: HARMONY-238
>          URL: http://issues.apache.org/jira/browse/HARMONY-238
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Mark Hindess
>     Assignee: Stepan Mishura
>     Priority: Trivial
>  Attachments: date.npe.diff
>
> RI (1.5.0_06) throws an IllegalArgumentException when the Date(String) constructor is called with null argument but Harmony throws a NullPointerException.

-- 
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] Assigned: (HARMONY-238) java.util.Date(null) should throw IllegalArgumentException not NullPointerException

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

Stepan Mishura reassigned HARMONY-238:
--------------------------------------

    Assign To: Stepan Mishura

> java.util.Date(null) should throw IllegalArgumentException not NullPointerException
> -----------------------------------------------------------------------------------
>
>          Key: HARMONY-238
>          URL: http://issues.apache.org/jira/browse/HARMONY-238
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Mark Hindess
>     Assignee: Stepan Mishura
>     Priority: Trivial
>  Attachments: date.npe.diff
>
> RI (1.5.0_06) throws an IllegalArgumentException when the Date(String) constructor is called with null argument but Harmony throws a NullPointerException.

-- 
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-238) java.util.Date(null) should throw IllegalArgumentException not NullPointerException

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

Mark Hindess updated HARMONY-238:
---------------------------------

    Attachment: date.npe.diff

Patch with fix and test.


> java.util.Date(null) should throw IllegalArgumentException not NullPointerException
> -----------------------------------------------------------------------------------
>
>          Key: HARMONY-238
>          URL: http://issues.apache.org/jira/browse/HARMONY-238
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Mark Hindess
>     Priority: Trivial
>  Attachments: date.npe.diff
>
> RI (1.5.0_06) throws an IllegalArgumentException when the Date(String) constructor is called with null argument but Harmony throws a NullPointerException.

-- 
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] Closed: (HARMONY-238) java.util.Date(null) should throw IllegalArgumentException not NullPointerException

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-238?page=all ]
     
Stepan Mishura closed HARMONY-238:
----------------------------------


Verified by Mark.

> java.util.Date(null) should throw IllegalArgumentException not NullPointerException
> -----------------------------------------------------------------------------------
>
>          Key: HARMONY-238
>          URL: http://issues.apache.org/jira/browse/HARMONY-238
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Mark Hindess
>     Assignee: Stepan Mishura
>     Priority: Trivial
>  Attachments: date.npe.diff
>
> RI (1.5.0_06) throws an IllegalArgumentException when the Date(String) constructor is called with null argument but Harmony throws a NullPointerException.

-- 
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] Commented: (HARMONY-238) java.util.Date(null) should throw IllegalArgumentException not NullPointerException

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-238?page=comments#action_12375049 ] 

Mark Hindess commented on HARMONY-238:
--------------------------------------

Nice catch.  That does resolve this issue.  Thanks Stepan.

> java.util.Date(null) should throw IllegalArgumentException not NullPointerException
> -----------------------------------------------------------------------------------
>
>          Key: HARMONY-238
>          URL: http://issues.apache.org/jira/browse/HARMONY-238
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Mark Hindess
>     Assignee: Stepan Mishura
>     Priority: Trivial
>  Attachments: date.npe.diff
>
> RI (1.5.0_06) throws an IllegalArgumentException when the Date(String) constructor is called with null argument but Harmony throws a NullPointerException.

-- 
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