Re:Java Hangs When Converting 2.2250738585072012e-308
by latch on Tuesday February 01, 2011 @03:51AM
(#2164919)
The compiler one is pretty neat. Hung IntelliJ. Didn't hang VS.NET. Had both open, had to try.
[ Parent
| on HN ]
Re:Java Hangs When Converting 2.2250738585072012e-308
by leppie on Tuesday February 01, 2011 @04:18AM
(#2164972)
Just to confirm .NET/C# handles this and correctly. So does IronScheme.
Re:Java Hangs When Converting 2.2250738585072012e-308
by Torn on Tuesday February 01, 2011 @06:16AM
(#2165185)
Why would a Java / JVM issue hang the .NET CLR?
Re:Java Hangs When Converting 2.2250738585072012e-308
by dagw on Tuesday February 01, 2011 @06:23AM
(#2165196)
Because by all accounts this isn't a Java/JVM issue. It's a flaw in a commonly used algorithm for handling floating point numbers. Given that php and possibly gcc use variations on the same algorithm, and have the same flaw, it's not unreasonable to think that other languages/compilers/runtimes would also be affected.
Re:Java Hangs When Converting 2.2250738585072012e-308
by Torn on Tuesday February 01, 2011 @06:30AM
(#2165211)
Thanks for the clarification.
Re:Java Hangs When Converting 2.2250738585072012e-308
by giu on Tuesday February 01, 2011 @06:27AM
(#2165206)
As the article "The PHP strtod() denial of service bug" (http://blog.andreas.org/display?id=9 ; linked by pilif in another comment) states, it looks like the code for the conversion is used in a few prominent libraries (e.g. Apple's libc, Android libc, GCC libio etc.). Therefore, it could've been quite possible that the mentioned code has been adopted by Microsoft, too; leppie just confirmed that everything works fine over there.
Re:Java Hangs When Converting 2.2250738585072012e-308
by leppie on Tuesday February 01, 2011 @06:42AM
(#2165231)
You obviously did not read the Moonlight vs IcedTea issue in Chrome article yesterday ;)
Re:Java Hangs When Converting 2.2250738585072012e-308
by DrJokepu on Tuesday February 01, 2011 @06:25AM
(#2165201)
I guess because only a couple of weeks ago a similar issue has surfaced in PHP so it is not entirely unreasonable to check whether other runtimes have similar problems?
Re:Java Hangs When Converting 2.2250738585072012e-308
by Stasyan on Tuesday February 01, 2011 @10:06AM
(#2165704)
F# is fine as well
Re:Java Hangs When Converting 2.2250738585072012e-308
by lukesandberg on Tuesday February 01, 2011 @08:16AM
(#2165371)
This hangs eclipse 3.5.2 when saving the code :)