Re: java.sql.Date.valueOf(2009-01-08) throws IlegalArgumentException

2009-01-13 Thread wouter
Yes, have the same problem. Your explanation corresponds to what I see. How do you solve it ? I intended to suppress the leading zeros. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

Re: java.sql.Date.valueOf(2009-01-08) throws IlegalArgumentException

2009-01-13 Thread Ian Petersen
On Thu, Jan 8, 2009 at 12:21 PM, Shawn Pearce s...@google.com wrote: Has anyone else noticed that java.sql.Date and java.sql.Timestamp throw IAE if given a date like today, 2009-01-08? Near as I can tell from the emul source, this is due to Number.__decodeNumberString deciding that a string

java.sql.Date.valueOf(2009-01-08) throws IlegalArgumentException

2009-01-08 Thread Shawn Pearce
Has anyone else noticed that java.sql.Date and java.sql.Timestamp throw IAE if given a date like today, 2009-01-08? Near as I can tell from the emul source, this is due to Number.__decodeNumberString deciding that a string starting with 0 (so 08) is octal, setting the radix to 8, and the parse