[JAVA-1351] DBCursor.count() and size() return int Created: 05/Aug/14  Updated: 06/Apr/15  Resolved: 06/Apr/15

Status: Closed
Project: Java Driver
Component/s: API, Query Operations
Affects Version/s: None
Fix Version/s: None

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


 Description   

Though the count command supports larger values, DBCursor.count() and DBCursor.size() return int, and silently cast the long to int.

We can't really fix this without breaking binary compatibility.

Note that the getCount family of methods in DBCollection all properly return a long.


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