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

TEST_BUG: test/java/lang/Math/DivModTests.java assumes ArithmeticException message

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b68
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      ~/jdk/test/java/lang/Math$ java -Xint -showversion DivModTests
      java version "1.8.0-ea"
      Java(TM) SE Runtime Environment (build 1.8.0-ea-b65)
      OpenJDK 64-Bit Shark VM (build 25.0-b11-internal, interpreted mode)

      FAIL: long Math.floorDiv(4, 0) = java.lang.ArithmeticException: / by long zero; expected java.lang.ArithmeticException: / by zero
      FAIL: long StrictMath.floorDiv(4, 0) = java.lang.ArithmeticException: / by long zero; expected java.lang.ArithmeticException: / by zero
      FAIL: long Math.floorMod(4, 0) = java.lang.ArithmeticException: / by long zero; expected java.lang.ArithmeticException: / by zero
      FAIL: long StrictMath.floorMod(4, 0) = java.lang.ArithmeticException: / by long zero; expected java.lang.ArithmeticException: / by zero
      Exception in thread "main" java.lang.RuntimeException: 4 errors found in DivMod methods.
      at DivModTests.main(DivModTests.java:49)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kmo Krystal Mo
                Reporter:
                twisti Christian Thalinger
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: