[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug 10491 was Re: More astonishing progress in japi scores
From: |
Andrew Haley |
Subject: |
Re: bug 10491 was Re: More astonishing progress in japi scores |
Date: |
Thu, 7 Oct 2004 15:05:53 +0100 |
Sven de Marothy writes:
> Andrew Haley writes:
> >> Has anyone seen that one:
> >> http://savannah.gnu.org/bugs/?func=detailitem&item_id=10491
> >> I recently discovered it while writing some test files for the
> >> XMLDecoder I am working on. In an attempt to find the reason I
> followed
> >> to the C source that does the conversion (java_lang_Double.c) and its
> >> obvious to me that the code does not care about the special values:
> >> [+-]NaN, [+-]Infinity
>
> >What is really wrong here? The bug has no test case, and doesn't
> >really explain.
>
> I think he's talking about Double.parseDouble(), an input string of
> "NaN" should return a NaN double. Now, it throws an exception.
>
> One-liner:
> System.out.println(Double.parseDouble("NaN"));
I see.
> Although, personally.. I'm not so sure of re-writing it in Java. Seems
> like overkill for a relatively trivial bug.
Yes. Also, the fdlibm code we use at the moment is of high quality.
It seems anything we write afresh will be more buggy, at least to
start with.
Andrew.
- RE: bug 10491 was Re: More astonishing progress in japi scores, Jeroen Frijters, 2004/10/07
- Re: bug 10491 was Re: More astonishing progress in japi scores, Sven de Marothy, 2004/10/07
- Re: bug 10491 was Re: More astonishing progress in japi scores,
Andrew Haley <=
- Re: bug 10491 was Re: More astonishing progress in japi scores, Sven de Marothy, 2004/10/07
- Re: bug 10491 was Re: More astonishing progress in japi scores, Per Bothner, 2004/10/07
- Re: bug 10491 was Re: More astonishing progress in japi scores, Sven de Marothy, 2004/10/07
- Re: bug 10491 was Re: More astonishing progress in japi scores, Archie Cobbs, 2004/10/07
- Re: bug 10491 was Re: More astonishing progress in japi scores, Per Bothner, 2004/10/07
- Re: bug 10491 was Re: More astonishing progress in japi scores, Archie Cobbs, 2004/10/07
- Re: bug 10491 was Re: More astonishing progress in japi scores, Chris Pickett, 2004/10/07
- Re: bug 10491 was Re: More astonishing progress in japi scores, Andrew Haley, 2004/10/08
Re: bug 10491 was Re: More astonishing progress in japi scores, Robert Schuster, 2004/10/07