List parameters should be generalized

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 3.0.0
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The Java driver function DBCollection.aggregate takes in a List<DBObject>, which has the consequence that you'll get a compiler error if you pass in a List<BasicDBObject> instead. This issue could be eliminated by changing the function to take List<? extends DBObject> instead. It appears that similar issues exist for DBCollection.explainAggregate and DBCollection.insert.

            Assignee:
            Jeffrey Yemin
            Reporter:
            David Golub (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: