[JAVA-4942] Mark as deprecated all constructors and constructor methods that are part of the public API but do not belong there Created: 18/Apr/23  Updated: 06/Sep/23  Resolved: 06/Sep/23

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

Type: Improvement Priority: Minor - P4
Reporter: Valentin Kavalenka Assignee: Unassigned
Resolution: Declined Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done before JAVA-4943 Annotate as not part of the public AP... Closed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Driver exceptions must be in the public API, but their constructors do not belong there, and should not be part of the public API even though currently they are. The same may be applicable to driver events, and, possibly, to other classes we have in the public API.

This ticket was created as a result of https://github.com/mongodb/mongo-java-driver/pull/1104#discussion_r1169341571.

This is a precursor to JAVA-4943, it must be done in 4.x if we decide to do it.


Generated at Thu Feb 08 09:03:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.