Stream.concat incorrectly calculates unsized state

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved: