Re: Incorrect note in Javadoc for a few RandomGenerator methods

2024-06-21 Thread Stig Rohde Døssing
; https://docs.oracle.com/en/java/javase/22/troubleshoot/submit-bug-report.html > > Thanks > > > > On 2024-06-21 19:12, Stig Rohde Døssing wrote: > > Hi, > > > > The Javadoc for RandomGenerator.nextLong(long origin, long bound) has > > this to say: > > &g

Incorrect note in Javadoc for a few RandomGenerator methods

2024-06-21 Thread Stig Rohde Døssing
Hi, The Javadoc for RandomGenerator.nextLong(long origin, long bound) has this to say: Implementation Requirements:The default implementation checks that origin and bound are positive longs This doesn't seem to be true. The default implementation checks that origin and bound are a valid range (t