[JAVA-3051] Deprecate com.mongodb.DB public constructor that takes a com.mongodb.Mongo instance Created: 15/Oct/18  Updated: 28/Oct/23  Resolved: 22/Oct/18

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.9.0

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


 Description   

With the deprecation of com.mongodb.Mongo this constructor should be deprecated as well so that the Mongo class can be removed in the next major release. Also, there's no good reason we're aware of for the DB class to have a public constructor, so it doesn't need to be replaced with a new public constructor that takes a com.mongodb.MongoClient, though we could consider adding one if requested.



 Comments   
Comment by Githook User [ 22/Oct/18 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@10gen.com', 'username': 'jyemin'}

Message: Deprecate com.mongodb.DB constructor taking a com.mongodb.Mongo

With the deprecation of com.mongodb.Mongo this constructor is also now
deprecated as well so that the Mongo class can be removed in the next
major release.

JAVA-3051
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/b9acc058c2e0da3b4b751d137a32a1bbdfbfda71

Generated at Thu Feb 08 08:58:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.