Java Hangs When Converting 2.2250738585072012e-308
21–30 of 70 posts
Re: Java Hangs When Converting 2.2250738585072012e-308
#22I have a feeling we will see this come up in more places. When we fixed the code for PHP we saw very similar code in a lot of other projects.
Re: Java Hangs When Converting 2.2250738585072012e-308
#23This affects JRuby, and potentially anyone with a JSON-based API running on the JVM with a JSON parser using the java stdlib to parse JSON floats:
jruby-1.5.2 > JSON.parse('{"float": 2.2250738585072012e-308}')
^C^C^C^C^C^C
^C^C^C
(not the most recent JRuby I know, but seems this is a JVM problem...)Re: Java Hangs When Converting 2.2250738585072012e-308
#24Re: Java Hangs When Converting 2.2250738585072012e-308
#25Earlier quoted context omitted.
Just to confirm .NET/C# handles this and correctly. So does IronScheme.
Why would a Java / JVM issue hang the .NET CLR?
Re: Java Hangs When Converting 2.2250738585072012e-308
#26Earlier quoted context omitted.
Just to confirm .NET/C# handles this and correctly. So does IronScheme.
Why would a Java / JVM issue hang the .NET CLR?
Re: Java Hangs When Converting 2.2250738585072012e-308
#27Earlier quoted context omitted.
Just to confirm .NET/C# handles this and correctly. So does IronScheme.
Why would a Java / JVM issue hang the .NET CLR?
Re: Java Hangs When Converting 2.2250738585072012e-308
#28Earlier quoted context omitted.
Why would a Java / JVM issue hang the .NET CLR?
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
#29Re: Java Hangs When Converting 2.2250738585072012e-308
#30 Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Oracle JRockit(R) (build R28.0.1-21-133393-1.6.0_20-20100512-2126-linux-ia32, compiled mode)