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

java.lang.Math.tanh returns different values on JDK24

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 24
    • core-libs
    • None
    • x86
    • generic

      The following Mauve test suite tests fail as of September last year (passes on the 5th, but started failing on the 26th, Adoptium Temurin builds of OpenJDK)

      [2025-03-19T08:15:03.744Z] LT FAIL: gnu.testlet.java.lang.Math.tanh (number 4)
      [2025-03-19T08:15:03.744Z] LT got 4374121138083594055 but expected 4374121138083594054
      [2025-03-19T08:15:03.744Z] LT FAIL: gnu.testlet.java.lang.Math.tanh (number 5)
      [2025-03-19T08:15:03.744Z] LT got -4849250898771181753 but expected -4849250898771181754

      This is specific to JDK24, and only occurs on x86-64 systems. The same test passes on aarch64.

      This issue has been seen on Temurin, Oracle, and Azul builds of OpenJDK.

      Also, based on the time this failure started, this may be the cause:

      https://github.com/openjdk/jdk/pull/20657

            darcy Joe Darcy
            afarley Adam Farley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: