harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Beyer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-446) [classlib][luni] java.util.Arrays sort and binarySearch generification and bug fixes
Date Mon, 08 May 2006 02:57:21 GMT
    [ 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


Mime
View raw message