Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4227983

java.sql.Timestamp didn't overload compareTo, setTime and getTime

XMLWordPrintable

    • 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)
      ======================================================================

            jellissunw Jon Ellis (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: