re PR libgcj/16574 (java.sql.Timestamp#toString() does not deal with fractional secon...
authorBryce McKinlay <mckinlay@redhat.com>
Thu, 15 Jul 2004 22:14:45 +0000 (22:14 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Thu, 15 Jul 2004 22:14:45 +0000 (23:14 +0100)
commitcbd7a79bc312c93c7081209c2e65024d016f662e
treee8016dfc420b4b3ca5e5ace062e88d794c5d3c8a
parente4f78bd4af1ac824139f05da29ef6c6c4366aa0b
re PR libgcj/16574 (java.sql.Timestamp#toString() does not deal with fractional seconds correctly)

2004-07-15  Bryce McKinlay  <mckinlay@redhat.com>

PR libgcj/16574
* java/sql/Timestamp.java (dateFormat): Renamed from sdf.
(decimalFormat): New static variable.
(sbuf): Likewise.
(getTime): New. Override Date.getTime().
(toString): Synchronize. Use decimalFormat to format nanos value
correctly. Truncate extra zeros.
(before): Compare getNanos() only if getTime() is equal.
(after): Likewise.

From-SVN: r84784
libjava/ChangeLog
libjava/java/sql/Timestamp.java