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

Mark as deprecated all constructors and constructor methods that are part of the public API but do not belong there

    • Type: Icon: Improvement Improvement
    • Resolution: Declined
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      None
    • Hide

      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?

      Show
      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?

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            valentin.kovalenko@mongodb.com Valentin Kavalenka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: