PATCH: SimpleDateFormat fix formats containing periods
Tom Tromey
tromey@redhat.com
Thu Jun 5 16:00:00 GMT 2003
>>>>> "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
More information about the Java-patches
mailing list