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

com.mongodb.MongoClient should implement the close method

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.9.1
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      None

      com.mongodb.MongoClient implements Closeable, but the close method is actually defined in com.mongodb.Mongo, its superclass. This shouldn't generate a compiler warning, but Eclipse is complaining about it anyway. See JAVA-3000.

      The solution is probably to add a close method to MongoClient that just calls super.close.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: