RFR: 8279598: Provide adapter from RandomGenerator to Random [v19]
jmehrens
duke at openjdk.java.net
Fri Mar 18 19:14:31 UTC 2022
On Fri, 18 Mar 2022 13:10:10 GMT, liach <duke at openjdk.java.net> wrote:
>you are not expected to inspect a random object by its string.
ToString representations tend to show up in exception messages and logging. Seems like this adapter just won't adapt that call. Not a deal breaker.
> Also the reverse order comparator in Collections doesn't have a toString override as well.
ToString wasn't added to that for compatibility reasons. Since this hasn't been released yet that doesn't apply here.
https://bugs.openjdk.java.net/browse/JDK-6483125
-------------
PR: https://git.openjdk.java.net/jdk/pull/7001
More information about the core-libs-dev
mailing list