NumberFormatException incorrectly generated

Bryce McKinlay bryce@waitaki.otago.ac.nz
Sun Apr 14 17:42:00 GMT 2002


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.




More information about the Java-patches mailing list