A DESCRIPTION OF THE PROBLEM :
In the documentation of Stream, in the third `reduce` method (with 3 arguments, ), the code under "This is equivalent to:" is a copy-and-paste of the code under the first `reduce` (with 2 arguments) and does not even mention the combiner.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Read https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/stream/Stream.html#reduce(java.lang.Object,java.util.function.BiFunction,java.util.function.BinaryOperator)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Either not seeing any suggestion of equivalent code, or seeing the correct code.
FREQUENCY : always
In the documentation of Stream, in the third `reduce` method (with 3 arguments, ), the code under "This is equivalent to:" is a copy-and-paste of the code under the first `reduce` (with 2 arguments) and does not even mention the combiner.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Read https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/stream/Stream.html#reduce(java.lang.Object,java.util.function.BiFunction,java.util.function.BinaryOperator)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Either not seeing any suggestion of equivalent code, or seeing the correct code.
FREQUENCY : always
- links to
-
Review openjdk/jdk/10469
Error in documentation of three-arg Stream.reduce method
A DESCRIPTION OF THE PROBLEM :
In the documentation of Stream, in the third `reduce` method (with 3 arguments, ), the code under "This is equivalent to:" is a copy-and-paste of the code under the first `reduce` (with 2 arguments) and does not even mention the combiner.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Read https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/stream/Stream.html#reduce(java.lang.Object,java.util.function.BiFunction,java.util.function.BinaryOperator)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Either not seeing any suggestion of equivalent code, or seeing the correct code.
FREQUENCY : always
In the documentation of Stream, in the third `reduce` method (with 3 arguments, ), the code under "This is equivalent to:" is a copy-and-paste of the code under the first `reduce` (with 2 arguments) and does not even mention the combiner.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Read https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/stream/Stream.html#reduce(java.lang.Object,java.util.function.BiFunction,java.util.function.BinaryOperator)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Either not seeing any suggestion of equivalent code, or seeing the correct code.
FREQUENCY : always
- links to
-
Review openjdk/jdk/10469