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

BasicDBList not accepting double types anymore

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • 2.13.0
    • Codecs
    • None
    • Windows 7 64bit, IntelliJ Idea

    Description

      While moving through records with a cursor, when I retrieve a field that is an array e.g.
      "tags":[4.0] and it only contains a single double while doing "BasicDBList l = (BasicDBList) o.get("Tags"); " I get
      "Exception in thread "main" java.lang.ClassCastException: java.lang.Double cannot be cast to com.mongodb.BasicDBList"

      There was no such a problem with previous stable version.

      Attachments

        Activity

          People

            Unassigned Unassigned
            krzys Krzys
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: