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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • core-libs
    • b68
    • generic
    • generic
    • Verified

      ~/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)

            kmo Krystal Mo (Inactive)
            twisti Christian Thalinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: