[JAVA-893] Deprecate classes that will be excluded from 3.x (Generic) Created: 22/Jul/13  Updated: 03/Apr/14  Resolved: 16/Aug/13

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

Type: Task Priority: Major - P3
Reporter: Uladzimir Mihura Assignee: Unassigned
Resolution: Done Votes: 0
Labels: 2to3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates JAVA-823 Deprecate WriteConcern.setWObject method Closed

 Description   

Classes needs to be deprecated

  • com.mongodb.io.ByteStream
  • org.bson.io.PoolOutputBuffer
  • com.mongodb.io.ByteBufferFactory
  • com.mongodb.io.ByteBufferFactory$SimpleHeapByteBufferFactory
  • com.mongodb.ReadPreference$TaggedReadPreference
  • com.mongodb.io.ByteBufferHolder
  • com.mongodb.io.ByteBufferFactory
  • com.mongodb.io.ByteBufferInputStream
  • com.mongodb.RawDBObject
  • org.bson.NewBSONDecoder
  • org.bson.BSONLazyDecoder
  • com.mongodb.io.ByteBufferOutputStream
  • com.mongodb.DBPort
  • com.mongodb.DBPortPool
  • com.mongodb.ReadPreference.TaggedReadPreference
  • com.mongodb.MongoOptions
  • com.mongodb.util.MyAsserts.MyAssert

Classes that already deprecated in 2.x and scheduled for remove in 3.x

  • com.mongodb.DBPointer

Methods to be deprecated

  • com.mongodb.WriteConcern#setWObject

Fields to be deprecated

  • org.bson.BSON#_utf8

Other

  • In com.mongodb.QueryOperators - add a default constructor and deprecate it because it is going to be private in 3.x


 Comments   
Comment by auto [ 15/Aug/13 ]

Author:

{u'username': u'trnl', u'name': u'Uladzimir Mihura', u'email': u'trnl.me@gmail.com'}

Message: JAVA-893: deprecate classes and methods that will be excluded from 3.x
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/58c676353a8eb04108503091f5dbb9e3e1a760d8

Comment by Uladzimir Mihura [ 08/Aug/13 ]

We are going to leave this things:

  • com.mongodb.MongoClientOptions.Builder#legacyDefaults
  • com.mongodb.MongoClientOptions.Builder#socketFactory
  • com.mongodb.MongoClientOptions.Builder#cursorFinalizerEnabled
  • com.mongodb.MongoClientOptions#getSocketFactory
  • com.mongodb.MongoClientOptions#isCursorFinalizerEnabled
Comment by Uladzimir Mihura [ 29/Jul/13 ]

WriteConcern.setWObject is already deprecated.

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