Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8279361

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


          Loading...
          Uploaded image for project: 'JDK'
          1. JDK
          2. JDK-8279361

          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


                    vklang Viktor Klang
                    webbuggrp Webbug Group
                    Votes:
                    0 Vote for this issue
                    Watchers:
                    5 Start watching this issue

                      Created:
                      Updated:

                        vklang Viktor Klang
                        webbuggrp Webbug Group
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        5 Start watching this issue

                          Created:
                          Updated: