mongodb/mongo-java-driver — pull request #131 by nlloyd (2013-07-23 03:12:56+00:00)
Title: JAVA-892: DefaultDBCallback performs check against DBRef following mongodb spec

This is a fix, including test coverage, for https://jira.mongodb.org/browse/JAVA-892.

Basically the DBRef check in DefaultDBCallback was checking against $ref and $id key presence when it should be $ref first, $id second, and $ref value must be a String.