Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8332476 j.u.r.RandomGeneratorFactor.create(long|byte[]) should throw rather than silently fallback to no-arg create()
  3. JDK-8332478

Release Note: Methods `RandomGeneratorFactory.create(long)` and `create(byte[])` Now Throw `UnsupportedOperationException` Instead of Falling Back to `create()`

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 23
    • 23
    • core-libs

      In previous releases, `RandomGeneratorFactory.create(long)` falls back by invoking the no-arg `create()` method if the underlying algorithm does not support a `long` seed. The `create(byte[])` method works in a similar fashion.

      Starting with this release, these methods now throw an `UnsupportedOperationException` rather than silently falling back to `create()`.

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

              Created:
              Updated:
              Resolved: