JDK-8332132 : Release Note: Methods `RandomGeneratorFactory.create(long)` and `create(byte[])` Now Throw `UnsupportedOperationException` Instead of Falling Back to `create()`
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util
  • Priority: P4
  • Status: Resolved
  • Resolution: Withdrawn
  • Submitted: 2024-05-13
  • Updated: 2024-05-17
  • Resolved: 2024-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 23
23Resolved
Description
In previous releases, `RGF.create(long)` falls back invoking the no-arg `create()` method if the underlying algorithm does not support a `long` seed.
Similarly for `create(byte[])`.

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