This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: NumberFormatException incorrectly generated


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]