Infinite looping: ThreadLocalRandom.current().doubles().parallel().distinct().iterator().next()
Brian Goetz
brian.goetz at oracle.com
Sun May 19 10:13:00 PDT 2013
Yes, a bug.
On 5/19/2013 12:21 PM, Georgiy Rakov wrote:
> Hello,
>
> following code causes infinite looping:
>
> import java.util.concurrent.ThreadLocalRandom;
>
> public class ThreadLocalRandomDistinct {
> public static void main(String[] argv) {
>
> ThreadLocalRandom.current().doubles().parallel().distinct().iterator().next();
>
> }
> }
>
> Could you please tell if it's a bug.
>
> The code is attached for your convenience.
>
> Thanks,
> Georgiy.
>
>
>
>
>
More information about the lambda-dev
mailing list