This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: SimpleDateFormat fix formats containing periods


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]