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

A change done with JDK-8268764 mismatches the java.rmi.server.ObjID.hashCode spec

    XMLWordPrintable

Details

    • b19
    • 18
    • b21
    • Verified

    Description

      Specification for java.rmi.server.ObjID.hashCode asserts:

      ==========================
      public int hashCode()
      Returns the hash code value for this object identifier, _the object number_.
      ==========================

      https://docs.oracle.com/en/java/javase/17/docs/api/java.rmi/java/rmi/server/ObjID.html#hashCode()

      The changes done with JDK-8268764 replaced the original implementation with Long.hashCode usage
      https://github.com/openjdk/jdk/commit/124f82377ba93359bc59118ee315ba194080fa92#diff-c0c1e054162cdec17bb083da268cd96be49a43ae42541d5be3906bd97b924925L203

      Attachments

        Issue Links

          Activity

            People

              stsypanov Sergey Tsypanov
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: