harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6395) [classlib][luni] Arrays.sort(double []) will result in StackOverflowError for specific arrays input
Date Wed, 02 Dec 2009 04:39:21 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784624#action_12784624
] 

Hudson commented on HARMONY-6395:
---------------------------------

Integrated in Harmony-1.5-head-linux-x86_64 #572 (See [http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/572/])
    Apply for ,  [classlib][luni] Arrays.sort(double []) will result in StackOverflowError
for specific arrays input


> [classlib][luni] Arrays.sort(double []) will result in StackOverflowError for specific
arrays input
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6395
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6395
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M11
>            Reporter: Jim Yu
>            Assignee: Sean Qiu
>             Fix For: 5.0M12
>
>         Attachments: HARMONY-6395.diff
>
>
> There is a simple testcase as below. You can see StackOverflowError if run this testcase.
This is a defect of Arrays.sort(double []), I have attached a fix for it.
> import java.util.Arrays;
> public class SortTest {
>     public static void main(String[] args) {
>         double[] array = { Double.NaN, 1.0, 2.0, Double.NaN, Double.NaN, 3.0,
>                 4.0 };
>         displayArray(array);
>         Arrays.sort(array);
>         displayArray(array);
>         System.out.println();
>     }
>     private static void displayArray(double[] array) {
>         for (double d : array)
>             System.out.print(d + " ");
>         System.out.println();
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message