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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2beta4
    • CPU:
      sparc
    • OS:
      solaris_2.5
    • Verification:
      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: