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

Spliterator.SORTED characteristics gets cleared for BaseStream.spliterator

    XMLWordPrintable

Details

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

    Description

      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}.
       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: