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

flatMap still prevents short circuiting when using .iterator()

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 11
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      flatMap was fixed in (8075939) so that it doesn't prevent short circuiting.
      If you replace the test cases in the ticket with versions that use
      .iterator().next() instead of .findFirst().get() then the problem
      still happens.

      Email thread:
      http://mail.openjdk.java.net/pipermail/core-libs-dev/2019-August/061868.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                smarks Stuart Marks
                Reporter:
                rriggs Roger Riggs
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: