Override Iterable.forEach in MongoIterable

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: Query Operations
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Jeffrey Yemin
            Reporter:
            Jeffrey Yemin
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: