summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-18 06:11:41 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-18 06:11:41 +0000
commite84af61cc5b15bd6e9057aff844426df01246b9e (patch)
treee366fcbf250608233288d04b415ace3ef3dc2086
parent2a6c94c1fd169aa44d4f2f8436f76976e05f8702 (diff)
downloadgcc-e84af61cc5b15bd6e9057aff844426df01246b9e.tar.gz
2003-09-18 Jeroen Frijters <jeroen@frijters.net>
* java/sql/Timestamp.java (valueOf): Fixed confusion of java.sql.Date and java.util.Date git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71508 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/sql/Timestamp.java2
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 35403cfab1b..0ba824b0a29 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-18 Jeroen Frijters <jeroen@frijters.net>
+
+ * java/sql/Timestamp.java
+ (valueOf): Fixed confusion of java.sql.Date and java.util.Date
+
2003-09-18 David P Grove <groved@us.ibm.com>
* java/io/LineNumberReader (read): Don't reset pos & limit when
diff --git a/libjava/java/sql/Timestamp.java b/libjava/java/sql/Timestamp.java
index b5f0523dfd9..be0aa4dcd02 100644
--- a/libjava/java/sql/Timestamp.java
+++ b/libjava/java/sql/Timestamp.java
@@ -81,7 +81,7 @@ public class Timestamp extends java.util.Date
{
try
{
- Date d = (Date) parse_sdf.parseObject(str);
+ java.util.Date d = (java.util.Date)parse_sdf.parseObject(str);
if (d == null)
throw new IllegalArgumentException(str);