All classes in jdk.internal.random are not serializable

Glavo zjx001202 at gmail.com
Thu Jan 30 15:22:00 UTC 2025


Hi,

My friend was migrating from Random to RandomGenerator, but he ran into a
roadblock:
Random is serializable, but those new implementations of
RandomGenerator are not serializable.

Was this an oversight or an evaluated decision?
Is it possible to make them serializable?

Glavo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250130/dd7de23b/attachment.htm>


More information about the core-libs-dev mailing list