RFR 8016324: filter/flatMap pipeline sinks should pass size information to downstream sink
chris.hegarty at oracle.com
Wed Jun 19 10:48:23 UTC 2013
On 11/06/2013 14:23, Paul Sandoz wrote:
> Please review the following patch contributed by Brian Goetz:
> This syncs most of code in the pipeline implementations from lambda to tl (the remaining aspects are to do with Comparator changes which will follow later).
> This patch fixes a bug for the filter and flatMap operations, where the corresponding Sink implementations that were incorrectly reporting size to downstream Sinks. A filter or flatMap might result in the output stream containing a different number of elements to that of the input stream so we have to say to a downstream sink "I don't know what my size will be".
Makes sense to me Paul.
More information about the core-libs-dev