Re: [The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-02 Thread Miroslav Pokorny
Does the problem also exist for Float.parseFloat for the same reasons ? -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javaposse@googlegroups.com. To unsubscribe from this group, send email to javaposse+u

Re: [The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-02 Thread Josh McDonald
It also will blow up other languages for which the compiler is written in Java. I tested it as a constant in Flex and it sent Eclipse to its grave, because you can't cancel the compile, and can't save or quit while it's waiting for the compile to finish. -Josh On 3 February 2011 09:51, Christian

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-02 Thread Christian Catchpole
I'm so glad I read the original article. Sorry for repeating the obvious :) On Feb 3, 9:51 am, Christian Catchpole wrote: > I did this on OS X and it looks like the 2.2250738585072012e-308 thing > causes spinning. Dodgy parser?http://twitpic.com/3vwtcq > > Rob: It shouldn't show up in Objective-C

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-02 Thread Christian Catchpole
I did this on OS X and it looks like the 2.2250738585072012e-308 thing causes spinning. Dodgy parser? http://twitpic.com/3vwtcq Rob: It shouldn't show up in Objective-C. Its code in the core of the JDK. Either in the Java libraries, native code, JIT code.. somewhere.. But it's probably common code

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-02 Thread Augusto Sellhorn
Don't see a problem in Netbeans so far ... not sure if I have that turned out. Either way at worst it's going to hang a thread, not sure if that will stop all builds ... On Feb 1, 7:47 pm, Josh McDonald wrote: > Free tip to everybody planning to try this out: don't do it in an IDE > project with

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-02 Thread Nick Brown
Well it would have to be using Double.parseDouble. I would imagine most of those would be using parseInteger or parseLong (at least as far as I know, floating point values are not valid credit card numbers). On Feb 1, 7:48 am, Andreas Petersson wrote: > a number of places where i found this to b

Re: [The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-02 Thread Rob Ross
On Feb 2, 2011, at 1:21 AM, Carl Jokl wrote: > This bug works on the Mac to...its like write oncecrash > everywhere! It did at least compile but seemed to take a very long > time about it. When you say "on the Mac", do you mean on the Apple JVM? I tried replicating this in a native Object

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-02 Thread Casper Bang
Doesn't manifest itself on Android. Perhaps Google could use that as evidence that Android is not Java nor did Apache copy Harmony. :) On Feb 1, 11:55 am, Andreas Petersson wrote: > even worse, you can use that bug to crash the compiler, too. > > I bet one can use that to kill a on of java-runnin

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-02 Thread Carl Jokl
This bug works on the Mac to...its like write oncecrash everywhere! It did at least compile but seemed to take a very long time about it. -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javaposse@google

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-01 Thread Steven Herod
I'm doing more extensive testing and getting my partner to count to it from 0. On Feb 2, 10:37 am, Christian Catchpole wrote: > I knew my girlfriend was a robot when I mentioned the > 2.2250738585072012e-308 thing and her head exploded. I'm glad she was > Java though. -- You received this messa

Re: [The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-01 Thread Josh McDonald
Free tip to everybody planning to try this out: don't do it in an IDE project with build-on-save... Kaboom! On 2 February 2011 10:19, Christian Catchpole wrote: > i know you're probably angry right now so i'll pretend you didn't say > that > > On Feb 2, 10:09 am, mbien wrote: > > maybe she was.

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-01 Thread Christian Catchpole
i know you're probably angry right now so i'll pretend you didn't say that On Feb 2, 10:09 am, mbien wrote: > maybe she was PHP?! > > On Feb 2, 12:37 am, Christian Catchpole wrote: > > > > > I knew my girlfriend was a robot when I mentioned the > > 2.2250738585072012e-308 thing and her head

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-01 Thread mbien
maybe she was PHP?! On Feb 2, 12:37 am, Christian Catchpole wrote: > I knew my girlfriend was a robot when I mentioned the > 2.2250738585072012e-308 thing and her head exploded. I'm glad she was > Java though. -- You received this message because you are subscribed to the Google Groups "The

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-01 Thread Christian Catchpole
I knew my girlfriend was a robot when I mentioned the 2.2250738585072012e-308 thing and her head exploded. I'm glad she was Java though. -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javaposse@googlegroup

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-01 Thread Andrew
Works fine in Apache Harmony 6.0M3. Now I understand why they couldn't give it a TCK - it might pass some tests that the Snoracle version won't! :-) On Feb 1, 9:55 pm, Andreas Petersson wrote: > even worse, you can use that bug to crash the compiler, too. > > I bet one can use that to kill a on

Re: [The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-01 Thread Ricky Clarkson
I never thought I'd see that in my cornflakes. On Tue, Feb 1, 2011 at 12:48 PM, Andreas Petersson wrote: > a number of places where i found this to be a cereal problem where you > won't suspect them: > > Credit Card Validators (checks first if given string is a number) > (Pentaho Data Integration

[The Java Posse] Re: serious bug hits jvm as well: Double.parseDouble("2.2250738585072012e-308")

2011-02-01 Thread Andreas Petersson
a number of places where i found this to be a cereal problem where you won't suspect them: Credit Card Validators (checks first if given string is a number) (Pentaho Data Integration) Version Numbers (in xml headers) (Xstream) and to my surprise HTTP headers (http://www.w3.org/Protocols/rfc2616/rf