This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: NumberFormatException incorrectly generated
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Mark Wielaard <mark at klomp dot org>
- Cc: Adam King <aking at dreammechanics dot com>, java-patches at gcc dot gnu dot org
- Date: Mon, 15 Apr 2002 12:40:38 +1200
- Subject: Re: NumberFormatException incorrectly generated
- References: <20020413171217.A17862@dreammechanics.com> <1018794471.6273.70.camel@elsschot>
Mark Wielaard wrote:
>Hi,
>
>On Sat, 2002-04-13 at 23:12, Adam King wrote:
>
>>2002-04-13 Adam King <aking@dreammechanics.com>
>>
>> * java/lang/natDouble.cc (parseDouble): Allow a number to end
>> with the f/F/d/D modifiers.
>>
>
>Thanks. I tried a slightly different but similar patch that calls
>charAt() just once. This kills 4 Mauve test failures.
>
>OK for branch/mainline?
>
OK for both. And thanks to you both for fixing this.
We could also change the:
throw new NumberFormatException;
to
throw new NumberFormatException (str);
regards
Bryce.