bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/30359] SimpleDateFormat parse "invalid Date syntax in" ex


From: luctor at gmail dot com
Subject: [Bug classpath/30359] SimpleDateFormat parse "invalid Date syntax in" exception
Date: 11 Jan 2007 07:32:49 -0000


------- Comment #1 from luctor at gmail dot com  2007-01-11 07:32 -------
(In reply to comment #0)
> Looks like SimpleDateFormat.parse has issues in 0.93. Tested using IKVM 0.32
> (using 0.93 classpath). Last worked in IKVM 0.30 (using 0.92 classpath). 
> Expect
> its down to the whitespace fixes?
> 
> The following code shows the problem:
> java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy");
> java.util.Date dt = sdf.parse("2006");
> 
> This throws an exception "invalid Date syntax in \"2006\"".
> 

Very similar problem. Using IKVM 0.32 (using 0.93 classpath) I get de following
exception:

   java.lang.IllegalArgumentException: 2000-01-01 00:00:00
        at java.sql.Timestamp.valueOf(Timestamp.java:117)
        at oracle.jdbc.driver.OracleDriver.<clinit>(OracleDriver.java)

And it should be ok.


-- 

luctor at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luctor at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30359





reply via email to

[Prev in Thread] Current Thread [Next in Thread]