RFR: JDK-8280950: RandomGenerator:NextDouble() default behavior non conformant after JDK-8280550 fix
Brian Burkhalter
bpb at openjdk.java.net
Mon Jan 31 23:05:07 UTC 2022
On Mon, 31 Jan 2022 22:31:03 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> The original fix to JDK-8280550 contained a typo where r rather than bound was used as the first argument to nextAfter; this PR corrects that issue.
Looks all right modulo the copyright year.
test/jdk/java/util/Random/RandomNextDoubleBoundary.java line 71:
> 69: RandomGenerator rg = new RandomGenerator() {
> 70: @Override
> 71: public double nextDouble() {
Bad indentation.
test/jdk/java/util/Random/RandomNextDoubleBoundary.java line 76:
> 74:
> 75: @Override
> 76: public long nextLong() {
Bad indentation.
-------------
Marked as reviewed by bpb (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/7292
More information about the core-libs-dev
mailing list