Infinite looping: ThreadLocalRandom.current().doubles().parallel().distinct().iterator().next() [updated]
Georgiy Rakov
georgiy.rakov at oracle.com
Sun May 19 09:24:29 PDT 2013
Hello,
(sorry, I have forgotten to specify build: b88)
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.
-------------- next part --------------
import java.util.concurrent.ThreadLocalRandom;
public class ThreadLocalRandomDistinct {
public static void main(String[] argv) {
ThreadLocalRandom.current().doubles().parallel().distinct().iterator().next();
}
}
More information about the lambda-dev
mailing list