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

java.sql.Timestamp.equals method has wrong signature.

    XMLWordPrintable

Details

    • 1.2beta4
    • sparc
    • solaris_2.5
    • Verified

    Description



      Name: avC70361 Date: 12/04/97



        The java.sql.Timestamp.equals(Timestamp) method has signature 'public boolean
      equals(java.sql.Timestamp)' instead of 'public boolean equals(java.lang.Object)'.
      Therefore the method does not override java.util.Date.equals(java.lang.Object)
      method, but the JDK1.2 API documentation states that Timestamp is a composite of
      java.util.Date and separate nanos values, so, when one compares a Timestamp
      instance with an Object, the Date.equals(Object) method is invoked which does not
      take a nanos value into account.

      ======================================================================

      Attachments

        Activity

          People

            swhitesunw Seth White (Inactive)
            ovlasov Oleksandr Vlasov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: