harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Imran Ghory (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4669) BinarySearches in Arrays broken
Date Wed, 22 Aug 2007 19:56:31 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521912
] 

Imran Ghory commented on HARMONY-4669:
--------------------------------------

Merge sorts look broken as well

> BinarySearches in Arrays broken
> -------------------------------
>
>                 Key: HARMONY-4669
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4669
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Imran Ghory
>
> All of the binary searches in Arrays.java use " mid = (low + high) >> 1;" to calculate
the average (rather than >>>) so int overflow can result in incorrect mid values.

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