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

DBCursor.count() and size() return int

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API, Query Operations
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: