<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kazama</author_name>
  <author_url>https://blog.hatena.ne.jp/kazama/</author_url>
  <blog_title>Cafe Babe</blog_title>
  <blog_url>https://kazama.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>GoogleのJoshua Bloch（Sun Microsystemsから転職したのは，このブログの読者は知ってるよね？）が，Google Research Blogで長い間眠っていた興味深いJavaのライブラリのバグについて報告している．http://googleresearch.blogspot.com/2006/06/extra-extra-read-all-about-it-nearly.html問題があるのは二分探索のコード中の中間を知るために平均を求める部分なのだが，整数値を加算した時にオーバーフローすると負の値になってしまい，その結果ArrayIndexOutOfBoundsE…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazama.hatenablog.com%2Fentry%2F20060605%2Fp2&quot; title=&quot; binarySearchメソッドのバグ - Cafe Babe&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-06-05 00:00:01</published>
  <title> binarySearchメソッドのバグ</title>
  <type>rich</type>
  <url>https://kazama.hatenablog.com/entry/20060605/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
