-
Bug
-
Resolution: Unresolved
-
P4
-
8, 9, 11, 17, 21, 22, 23, 24
-
None
Streams generally produce elements lazily and avoid production of excess elements when there are short circuiting operations. However, for less common cases laziness is not possible There is a tradeoff between implementation complexity and laziness.
Problematic cases arise for the use of an "escape hatch" iterator or spliterator terminal operation .
It would be beneficial to add some guidance to the stream package documentation.
Problematic cases arise for the use of an "escape hatch" iterator or spliterator terminal operation .
It would be beneficial to add some guidance to the stream package documentation.
- relates to
-
JDK-8267359 Stream.flatMap() consumes entire flatmapped stream when Stream.iterator() is called
- Closed
-
JDK-8267758 Double nested Stream.flatMap buffer the entire Stream before processing it
- Closed