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

java.util.UUID#hashCode() should use Long.hashCode()

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b23
    • CPU:
      generic
    • OS:
      generic

      Description

      A DESCRIPTION OF THE PROBLEM :
      As of https://github.com/openjdk/jdk/blob/9ca6bf0d22ac39d4ee29c756903038f09087ca12/src/java.base/share/classes/java/util/UUID.java#L469-L473, `java.util.UUID.hashCode()` is manually computing long hash although it is preferred to use `Long#hashCode(long)` for this purpose.


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rriggs Roger Riggs
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: