This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: java.text.DateFormat
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Fri, 9 Jul 2004 16:05:43 +0200
- Subject: Patch: java.text.DateFormat
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I just merged the attached path from classpath to add fixes done by
Dalibor Topic.
Michael
2004-07-09 Dalibor Topic <robilad@kaffe.org>
* java/text/DateFormat.java (parse):
Improved javadoc. Improved exception message.
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA7qY3WSOgCCdjSDsRAoqwAKCQh23knx+6/ZWlkDi+UE2Bunf9hACgh0nZ
wHc47EyVS4UgpbEHaLeVPB8=
=jdUH
-----END PGP SIGNATURE-----
Index: java/text/DateFormat.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/text/DateFormat.java,v
retrieving revision 1.14
diff -u -b -B -r1.14 DateFormat.java
--- java/text/DateFormat.java 14 Jun 2004 15:51:37 -0000 1.14
+++ java/text/DateFormat.java 9 Jul 2004 14:02:04 -0000
@@ -1,5 +1,6 @@
/* DateFormat.java -- Class for formatting/parsing date/times
- Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004
+ Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -591,6 +592,7 @@
/**
* This method parses the specified date/time string.
*
+ * @param source The string to parse.
* @return The resultant date.
*
* @exception ParseException If the specified string cannot be parsed.
@@ -604,7 +606,8 @@
int index = pos.getErrorIndex();
if (index < 0)
index = pos.getIndex();
- throw new ParseException("invalid Date syntax", index);
+ throw new ParseException("invalid Date syntax in \""
+ + source + '\"', index);
}
return result;
}