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

Add @throws and @implNote clauses to BigInteger::isProblablePrime and BigInteger::nextProblablePrime

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • None
    • core-libs
    • b20

    Description

      https://bugs.openjdk.org/browse/JDK-8294593 adds a check on the size of the target of `BigInteger::isProbablePrime`. The check throws an `ArithmeticException` on large targets. The spec needs to be updated.

      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: