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

List parameters should be generalized

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.0.0
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      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:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            david.golub@mongodb.com David Golub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: