As explained @exploringbinary.com, try following code to get your runtime hanged.
public class DoubleBug { private static void hangRunTime() { System.out.println("Test:"); double d = Double.parseDouble("2.2250738585072012e-308"); System.out.println("Value: " + d); } public static void hangCompiler() { //double d = 2.2250738585072012e-308; //System.out.println("Value: " + d); } public static void main(String args[]) { hangRunTime(); } }<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
Oracle has already released a patch for this and quite interestingly the fix for this was just one keyword addition. Get your jre patched. BTW, this is a PHP bug as well. So in the meantime, you can try bringing down your own website, by sending the String (assuming the server does a double conversion)
Related posts
Feed
- India
- World
- Live
- Cricket News
This site uses cookies. These cookies come mainly from third party library used at this site(Google/Jetpack/etc). By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here Cookie Policy
To find out more, including how to control cookies, see here Cookie Policy