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

List parameters should be generalized

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.0.0
    • None
    • API
    • None

    Description

      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.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            david.golub@mongodb.com David Golub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: