Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8014907

Infinite looping: ThreadLocalRandom.current().doubles().parallel().distinct().iterator().next()

XMLWordPrintable

      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();
              }
          }

      The code is attached for your convenience. This was reproduced on b88.

            psandoz Paul Sandoz
            grakov Georgiy Rakov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: