This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PATCH: SimpleDateFormat fix formats containing periods
- From: Tom Tromey <tromey at redhat dot com>
- To: "Scott Gilbertson" <scottg at mantatest dot com>
- Cc: <java-patches at gcc dot gnu dot org>
- Date: 05 Jun 2003 09:52:43 -0600
- Subject: Re: PATCH: SimpleDateFormat fix formats containing periods
- References: <001a01c31eeb$fff0b9e0$3c16a8c0@mantatest.com>
- Reply-to: tromey at redhat dot com
>>>>> "Scott" == Scott Gilbertson <scottg@mantatest.com> writes:
Scott> The attached program reports an exception in
Scott> SimpleDateFormat.parse without this patch, but works properly
Scott> (i.e. reports the parsed date) with the patch. The problem was
Scott> that numeric fields were being parsed as floating-point, even
Scott> though SimpleDateFormat.parse requires them to be integer
Scott> (long, actually), so any format containing periods would fail.
Looks good. I'm checking it in to Classpath and libgcj.
I'm also putting a variant of your test case into Mauve.
Tom