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

Deprecate org.bson.io.ByteBuf

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API, BSON

      Let's ship 5.x with a deprecation warning for this and all the methods that use it. We won't deprecate or remove it in 5.0, we can do it in the next minor version that follows.

      Once StreamFactory is removed, there will be less need for ByteBuf directly and we could replace it with methods that use Java's ByteBuffer class. It's currently still used in RawBsonDocument and RawBsonArray.

            Assignee:
            Unassigned Unassigned
            Reporter:
            tom.selander@mongodb.com Tom Selander
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: