RFR: 8330005: RandomGeneratorFactory.getDefault() throws exception when the runtime image only has java.base module

Raffaello Giulietti rgiulietti at openjdk.org
Wed Apr 24 15:27:26 UTC 2024


On Wed, 24 Apr 2024 13:50:56 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

> Move all random generators mandated in package `java.util.random` and currently implemented in module `jdk.random` to module `java.base`, and remove module `jdk.random`.

In terms of .jmod, the footprint of java.base.jmod is 20'542'561 bytes in the OpenJDK 22.0.1 build, and 20'552'354 bytes on my local 23 build, a difference of about 10 KB, or around 0.05%.

Just renamed the package to `jdk.internal.random`.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18932#issuecomment-2075209956


More information about the core-libs-dev mailing list