[JAVA-3779] ObjectId.toString() calls deprecated method Created: 09/Jul/20  Updated: 09/Jul/20  Resolved: 09/Jul/20

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

Type: Improvement Priority: Major - P3
Reporter: Stefan Stanzer Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The toString()-Method of ObjectId calls toStringMongod(), which is deprecated. 

It is suggested to use toHexString() instead, so i think toString() should call that method.



 Comments   
Comment by Stefan Stanzer [ 09/Jul/20 ]

You are right, i somehow was on an old version.

Thanks for the quick response

Comment by Jeffrey Yemin [ 09/Jul/20 ]

Thanks for the report.

That change has already been made in master, and I don't see a compelling reason to backport it.

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