You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Nathan Beyer (JIRA)" <ji...@apache.org> on 2006/05/08 04:57:21 UTC

[jira] Commented: (HARMONY-446) [classlib][luni] java.util.Arrays sort and binarySearch generification and bug fixes

    [ http://issues.apache.org/jira/browse/HARMONY-446?page=comments#action_12378357 ] 

Nathan Beyer commented on HARMONY-446:
--------------------------------------

Looks good. Thanks for the commit and cleanup.

> [classlib][luni] java.util.Arrays sort and binarySearch generification and bug fixes
> ------------------------------------------------------------------------------------
>
>          Key: HARMONY-446
>          URL: http://issues.apache.org/jira/browse/HARMONY-446
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Nathan Beyer
>     Assignee: Tim Ellison
>  Attachments: Arrays_sort_binarySearch_patches.txt
>
> The bugs are that Arrays.sort and Arrays.binarySearch throw invalid NPE when null Comparators are passed. The following code is an example of the regression test.
>         String[] strings = new String[] { "a", "B", "c", "D" };
>         Arrays.sort(strings, String.CASE_INSENSITIVE_ORDER);
>         Arrays.sort(strings, null);
> Additionally, the Arrays.sort and Arrays.binarySearch have been generified.
> A patch for the main source and test cases will follow.

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