RFR-8148838: Stream.flatMap(...).spliterator() cannot properly split after tryAdvance()
Stefan Zobel
spliterator at gmail.com
Wed Feb 10 13:04:20 UTC 2016
> 2016-02-08 15:05 GMT+01:00 Paul Sandoz <paul.sandoz at oracle.com>:
>
>> On 8 Feb 2016, at 14:53, Tagir F. Valeev <amaembo at gmail.com> wrote:
>>
>> PS> Why don’t you check if "buffer == null” at #189? i.e. similar to forEachRemaining:
>>
>> That would make minimal behavioral change to fix this issue (fix
>> flatMap keys only, but not affect other intermediate ops which were
>> working correctly). Well, if buffer == null check is enough, here's
>> update:
>>
>
> Many thanks, yes it’s sufficient (finished == true when buffer != null && buffer.count() == 0).
>
Hi all,
Question: will this get backported to Java 8 ?
Regards,
Stefan
More information about the core-libs-dev
mailing list