Program hangs while parsing Double value?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4895857/compilation-hangs-for-a-class-with-field-double-d-2-2250738585072012e-308">Compilation hangs for a class with field double d = 2.2250738585072012e-308</a>  </p>
</blockquote>



<p>Why does this Java program hang while parsing a double value <code>0.0222507385850720119e-00306</code>?</p>

<pre><code>public class DoubleTest {

  public static boolean isDoubleValue(String value) {
    try {
      Double.valueOf(value);
      return true;
    } catch (NumberFormatException e) {
      return false;
    }
  }


  public static void main(String a[]){

    DoubleTest.isDoubleValue("0.0222507385850720119e-306");
    System.out.println("out of hang...");
  }

}
</code></pre>
