RFR (S): CR 8005926: (thread) Merge ThreadLocalRandom state into java.lang.Thread
Alan Bateman
Alan.Bateman at oracle.com
Tue Jan 15 10:01:04 UTC 2013
On 15/01/2013 09:40, Peter Levart wrote:
> If this is an API change, then it might as well be a change in the
> serializability of the ThreadLocalRandom instance. Since TLR extends
> Random which is already Serializable, this could be done by throwing
> appropriate exception in writeObject().
>
> I don't think anyone would really notice.
Dubious as it might be, I'm sure it would break somebody so I think it
would be safer not to do this.
-Alan.
More information about the core-libs-dev
mailing list