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.

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

              Created:
              Updated:
              Resolved: