Hi, On Wed, 2007-01-03 at 15:59 -0500, Francis Kung wrote: > Andrew John Hughes wrote: > > This adds the new range-based binarySearch methods. > > Unfortunately this breaks the binarySearch for empty arrays. I've just > committed some mauve tests for this case. > > I've attached a patch that fixes it; let me know if you'd like me to > commit, or if you'll approach this another way.
BTW. This is bug #30355 java.util.Arrays.binarySearch methods throw an exception with zero length arrays http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30355 Please do close that one if the patch goes in. Thanks, Mark
