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

com.mongodb.MongoClient should implement the close method

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.9.1
    • None
    • API
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: