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

Stream.concat incorrectly calculates unsized state

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • None
    • core-libs
    • None

    Description

      The concat spliterator calculates unsized state as follows:

                  unsized = aSpliterator.hasCharacteristics(SIZED)
                            && aSpliterator.hasCharacteristics(SIZED)
                            && aSpliterator.estimateSize() + bSpliterator.estimateSize() < 0;

      There is a typo on the second line: bSpliterator should be used instead.

      Attachments

        Activity

          People

            psandoz Paul Sandoz
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: