+2004-07-09 Dalibor Topic <robilad@kaffe.org>
+
+ * java/text/DateFormat.java (parse):
+ Improved javadoc. Improved exception message.
+
2004-07-09 Mark Wielaard <mark@klomp.org>
* gnu/java/nio/SelectorImpl.java (select): Call static Thread
/* 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.
/**
* 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.
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;
}