Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3630

Override Iterable.forEach in MongoIterable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Component/s: Query Operations
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      In scope of JAVA-3325, the Java 8-specific implementation of the various Iterable implementations were removed, and in doing so all the overrides of forEach(Consumer<T>) were removed. But we neglected to add a single override of that method in MongoIterableImpl. It's important to do so because the overrides ensure that forEach properly closes the cursor in the face of an exception during iteration.

        Attachments

          Activity

            People

            Assignee:
            jeff.yemin Jeffrey Yemin
            Reporter:
            jeff.yemin Jeffrey Yemin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: