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

Alan Bateman alanb at openjdk.org
Wed Jun 5 05:03:04 UTC 2024


On Wed, 5 Jun 2024 04:41:48 GMT, David Alayachew <duke at openjdk.org> wrote:

> Hey, I'm just curious -- why was the solution to remove an entire module? I understand the point of moving the relevant code over to `java.base`, but I don't understand why removing the random module made sense.

With the implementations moved, the jdk.random module didn't contain any classes. A placeholder module could have been left in place for this using jlink that might have a script that adds this module but it didn't seem worth it to do this for a release or two. It was a different answer for jdk.cryto.ec before it was removed. That module existed since JDK 9 so more likely be used in jlink scripts.

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

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


More information about the core-libs-dev mailing list