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

Spliterators obtained by trivial Streams should be splittable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      Currently, when obtaining the Spliterator from something like `LongStream.range(0,10).boxed().spliterator()`, the resulting Spliterator cannot be split using trySplit, as it always returns false.

      It should be possible to obtain a Spliterator for trivial Streams which does support the trySplit operation.

            Unassigned Unassigned
            vklang Viktor Klang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: