summaryrefslogtreecommitdiff
path: root/libjava/java/text
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-09 14:02:21 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-09 14:02:21 +0000
commita4a0e2d03eea39139b9c9dd8ff0790d685e3ecd9 (patch)
tree39bda3ecc6ddf5107b19d4e7d2742391aebed872 /libjava/java/text
parent9e289e90927b860971b942b010ee49165071e5ee (diff)
downloadgcc-a4a0e2d03eea39139b9c9dd8ff0790d685e3ecd9.tar.gz
2004-07-09 Dalibor Topic <robilad@kaffe.org>
* java/text/DateFormat.java (parse): Improved javadoc. Improved exception message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84368 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/text')
-rw-r--r--libjava/java/text/DateFormat.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/libjava/java/text/DateFormat.java b/libjava/java/text/DateFormat.java
index 3b489fae7eb..81427ebce61 100644
--- a/libjava/java/text/DateFormat.java
+++ b/libjava/java/text/DateFormat.java
@@ -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 @@ public abstract class DateFormat extends Format implements Cloneable
/**
* 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 @@ public abstract class DateFormat extends Format implements Cloneable
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;
}