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/04/19 09:29:18 UTC
[jira] Created: (HARMONY-378)
java.util.Arrays.sort(null,(int)-1,(int)1) should throw
NullPointerException
java.util.Arrays.sort(null,(int)-1,(int)1) should throw NullPointerException
----------------------------------------------------------------------------
Key: HARMONY-378
URL: http://issues.apache.org/jira/browse/HARMONY-378
Project: Harmony
Type: Bug
Components: Classlib
Reporter: Mark Hindess
Priority: Trivial
To match RI behaviour, the three and four argument Arrays.sort methods should throw NullPointerExceptions when passed a null array but it throws ArrayIndexOutOfBoundsException in some cases.
Will attach a patch shortly.
--
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-378)
java.util.Arrays.sort(null,(int)-1,(int)1) should throw
NullPointerException
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-378?page=all ]
Stepan Mishura reassigned HARMONY-378:
--------------------------------------
Assign To: Stepan Mishura
> java.util.Arrays.sort(null,(int)-1,(int)1) should throw NullPointerException
> ----------------------------------------------------------------------------
>
> Key: HARMONY-378
> URL: http://issues.apache.org/jira/browse/HARMONY-378
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Assignee: Stepan Mishura
> Priority: Trivial
> Attachments: arrays.sort.npe.diff
>
> To match RI behaviour, the three and four argument Arrays.sort methods should throw NullPointerExceptions when passed a null array but it throws ArrayIndexOutOfBoundsException in some cases.
> Will attach a patch shortly.
--
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-378)
java.util.Arrays.sort(null,(int)-1,(int)1) should throw
NullPointerException
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-378?page=all ]
Stepan Mishura closed HARMONY-378:
----------------------------------
Verified by Mark.
> java.util.Arrays.sort(null,(int)-1,(int)1) should throw NullPointerException
> ----------------------------------------------------------------------------
>
> Key: HARMONY-378
> URL: http://issues.apache.org/jira/browse/HARMONY-378
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Assignee: Stepan Mishura
> Priority: Trivial
> Attachments: arrays.sort.npe.diff
>
> To match RI behaviour, the three and four argument Arrays.sort methods should throw NullPointerExceptions when passed a null array but it throws ArrayIndexOutOfBoundsException in some cases.
> Will attach a patch shortly.
--
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-378)
java.util.Arrays.sort(null,(int)-1,(int)1) should throw
NullPointerException
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-378?page=comments#action_12376210 ]
Mark Hindess commented on HARMONY-378:
--------------------------------------
Looks good. Thanks Stepan.
> java.util.Arrays.sort(null,(int)-1,(int)1) should throw NullPointerException
> ----------------------------------------------------------------------------
>
> Key: HARMONY-378
> URL: http://issues.apache.org/jira/browse/HARMONY-378
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Assignee: Stepan Mishura
> Priority: Trivial
> Attachments: arrays.sort.npe.diff
>
> To match RI behaviour, the three and four argument Arrays.sort methods should throw NullPointerExceptions when passed a null array but it throws ArrayIndexOutOfBoundsException in some cases.
> Will attach a patch shortly.
--
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-378)
java.util.Arrays.sort(null,(int)-1,(int)1) should throw
NullPointerException
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-378?page=all ]
Stepan Mishura resolved HARMONY-378:
------------------------------------
Resolution: Fixed
Thanks Mark,
Patch was applied to LUNI module at repo revision 396807.
Please check that the patch was applied as you expected.
> java.util.Arrays.sort(null,(int)-1,(int)1) should throw NullPointerException
> ----------------------------------------------------------------------------
>
> Key: HARMONY-378
> URL: http://issues.apache.org/jira/browse/HARMONY-378
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Assignee: Stepan Mishura
> Priority: Trivial
> Attachments: arrays.sort.npe.diff
>
> To match RI behaviour, the three and four argument Arrays.sort methods should throw NullPointerExceptions when passed a null array but it throws ArrayIndexOutOfBoundsException in some cases.
> Will attach a patch shortly.
--
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-378)
java.util.Arrays.sort(null,(int)-1,(int)1) should throw
NullPointerException
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-378?page=all ]
Mark Hindess updated HARMONY-378:
---------------------------------
Attachment: arrays.sort.npe.diff
Patch with fixes and tests.
> java.util.Arrays.sort(null,(int)-1,(int)1) should throw NullPointerException
> ----------------------------------------------------------------------------
>
> Key: HARMONY-378
> URL: http://issues.apache.org/jira/browse/HARMONY-378
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Priority: Trivial
> Attachments: arrays.sort.npe.diff
>
> To match RI behaviour, the three and four argument Arrays.sort methods should throw NullPointerExceptions when passed a null array but it throws ArrayIndexOutOfBoundsException in some cases.
> Will attach a patch shortly.
--
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