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

Check the size of the target on invocations of BigInteger::isProbablePrime

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 8, 11, 17, 19
    • core-libs
    • None
    • b18
    • generic
    • generic

      `BigInteger::nextProbablePrime` throws an `ArithmeticException` when invoked on a target which is deemed too large. To parallel this behavior, `BigInteger::isProbablePrime` should perform a similar check and throw an `ArithmeticException` on large targets.

            rgiulietti Raffaello Giulietti
            rgiulietti Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: