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

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

    XMLWordPrintable

Details

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

    Description

      `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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: