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

AltHashing used jint for imprecise bit shifting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 7, 8, 9
    • hotspot
    • None
    • generic

    • b04
    • generic
    • generic

        It is not precise when do bit shifting with signed int (jint). In AltHashing, conversion between jint and 'unsigned int' could cause loss of precision. The solution is using juint for operation and before return cast result to jint.

              minqi Yumin Qi
              minqi Yumin Qi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: