-
Bug
-
Resolution: Fixed
-
P4
-
1.2.1, 1.2.2
-
beta
-
generic, x86
-
generic, windows_nt
Name: krT82822 Date: 04/08/99
Package java.sql
Timestamp does not overload compareTo Method (Comparable Interface)
which is inherited from java.util.Date. So compareTo compares
only the Date value of the Timestamp and ignores the nanos!!!
Also setTime and getTime must be overloaded because otherwise
the nanos are not considered correctly (also in jdk1.1).
Constructor Timestamp(long) handle these correctly.
I've reported this bug on 25.01.99 (ID: 53126) but I've never found
it in the Bug-List
(Review ID: 56715)
======================================================================
- relates to
-
JDK-4631234 java.sql.Timestamp.compareTo no longer accepts java.util.Dates in 1.4
-
- Resolved
-