[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. |