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

BaseStream.iterator() should specify ordering characteristics

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: core-libs

      Description

      The specification for BaseStream.iterator() is silent about the order in which it produces elements. This is contrary to the intent, which is that if the stream has a defined encounter order, the iterator produces elements in encounter order. This is most likely simply an oversight. The specification should be updated.

      It may also be useful to scan various overview specs and the specs for the intermediate and terminal ops to see if the issue of ordering is adequately covered. In principle this ought to be done for all the stream (spliterator) characteristics, but ordering is probably the one that's most relevant to applications.

        Attachments

          Activity

            People

            • Assignee:
              smarks Stuart Marks
              Reporter:
              smarks Stuart Marks
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: