Could you add this patch to the issue and use a filename like
"Time_valueOf.patch".

On Mon, Oct 13, 2008 at 3:35 PM, Amit Manjhi <[EMAIL PROTECTED]> wrote:

> Hi John and Scott,
>
> Attached is a patch to fix the issue. The previous code was failing because
> it was invoking Integer.decode(..) method to do the parsing.
> Integer.decode(..) first tries to infer the base and then attempts to decode
> the String in that base. "08" and "09" were decoded as octal and an
> exception was thrown in trying to decode 8 and 9 in octal base.
>
> I just replaced the Integer.decode(..) call with Integer.parseInt(...). The
> parseInt call assumes a decimal base and everything works great.
>
> Regards,
> Amit
>
> On Mon, Oct 13, 2008 at 11:30 AM, <[EMAIL PROTECTED]> wrote:
>
>> Issue 2950: Time.valueOf fails with 08 and 09 numbers
>> http://code.google.com/p/google-web-toolkit/issues/detail?id=2950
>>
>> Comment #1 by [EMAIL PROTECTED]:
>> (No comment was entered for this change.)
>>
>>
>> Issue attribute updates:
>>        Summary: Time.valueOf fails with 08 and 09 numbers
>>        Owner: [EMAIL PROTECTED]
>>        Labels: Category-JRE Milestone-1_6_RC Type-Defect
>>
>> --
>> You received this message because you are listed in the owner
>> or CC fields of this issue, or because you starred this issue.
>> You may adjust your issue notification preferences at:
>> http://code.google.com/hosting/settings
>>
>
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to