[JAVA-3099] com.mongodb.MongoClient should implement the close method Created: 21/Nov/18 Updated: 28/Oct/23 Resolved: 22/Nov/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | None |
| Fix Version/s: | 3.9.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| 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 The solution is probably to add a close method to MongoClient that just calls super.close. |
| Comments |
| Comment by Githook User [ 14/Jan/19 ] |
|
Author: {'username': 'jyemin', 'email': 'jeff.yemin@10gen.com', 'name': 'Jeff Yemin'}Message: Implement Closeable directly in MongoClient Some tools are generating spurious warnings about this, because while
|
| Comment by Githook User [ 22/Nov/18 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@10gen.com', 'username': 'jyemin'}Message: Implement Closeable directly in MongoClient Some tools are generating spurious warnings about this, because while
|
| Comment by Githook User [ 22/Nov/18 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@10gen.com', 'username': 'jyemin'}Message: Implement Closeable directly in MongoClient Some tools are generating spurious warnings about this, because while
|
| Comment by Ken Kolano [X] [ 21/Nov/18 ] |
|
That does resolve this. |
| Comment by Jeffrey Yemin [ 21/Nov/18 ] |
|
OK, Kolano Can you give the 3.9.1-SNAPSHOT a try: https://oss.sonatype.org/content/repositories/snapshots/org/mongodb/mongo-java-driver/3.9.1-SNAPSHOT/ ? |