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

JDK-8202449 fix breaks RandomGenerator.html#nextDouble(double,double) conformance spec for IAEx case

    XMLWordPrintable

Details

    Description

      As per
      https://download.java.net/java/early_access/jdk19/docs/api/java.base/java/util/random/RandomGenerator.html#nextDouble(double,double)

      "IllegalArgumentException - if origin is not finite, or bound is not finite, or origin is greater than or equal to bound, or the difference between bound and origin is so large that it cannot be represented as a finite double value"

      For the input
      rg.nextDouble(-Double.MAX_VALUE, Double.MAX_VALUE) It is expected to throw IAEx.
      JDKb26 breaks this behavior.


      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: