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

Spliterator.SORTED characteristics gets cleared for BaseStream.spliterator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 8
    • core-libs
    • None

      Given a Spliterator returned following stream pipeline:

        s.sorted().unordered().spliterator()

      it reports SORTED but not ORDERED which does not conform to the the specification of Spliterator.SORTED:

           * <p>A Spliterator that reports {@code SORTED} must also report
           * {@code ORDERED}.
       

            vklang Viktor Klang
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: