[Ikvm-developers] New Bug - java.sql.Timestamp - InvalidCastException
Brought to you by:
jfrijters
|
From: Jonathan P. <jp...@ny...> - 2003-07-24 17:18:20
|
Jeroen,
>> Reproduceable bug reports are always welcome.
Should I report classpath bugs here as well?
Here's a bug in java.sql.Timestamp.
java.sql.Timestamp theTimestamp =
java.sql.Timestamp.valueOf("2000-01-01 00:00:00.0");
Here's a classpath bug for you. When I run the following code in your latest
snapshot, I get an invalid cast exception.
It looks like java.sql.Timestamp.valueOf calls
java.util.SimpleDateFormat.parseObject which returns a java.util.Date
java.sql.Timestamp.valueOf then casts it to a java.sql.Date since it doesn't
explitly specify java.util.Date and it is in the java.sql package.
Jonathan
|