mongodb/mongo-java-driver — pull request #92 by seanjreilly (2012-12-23 19:41:58+00:00)
Title: (JAVA-720) DBCursor.next() throws the wrong exception

This pull request includes a fix for https://jira.mongodb.org/browse/JAVA-720. It changes DBCursor.next() to throw the appropriate kind of exception to conform to the contract for java.util.Iterator.

It's a fairly straightforward change, and a unit test is included.