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

DBObject.toString raises RuntimeException when the object contains Symbol

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.7.2
    • Component/s: API
    • Labels:
      None

      scala> com.mongodb.BasicDBObjectBuilder.start("key", new org.bson.types.Symbol("symbol")).get.toString
      java.lang.RuntimeException: json can't serialize type : class org.bson.types.Symbol
      at com.mongodb.util.JSON.serialize(JSON.java:261)
      at com.mongodb.util.JSON.serialize(JSON.java:141)
      at com.mongodb.util.JSON.serialize(JSON.java:58)
      at com.mongodb.BasicDBObject.toString(BasicDBObject.java:84)

            Assignee:
            Unassigned Unassigned
            Reporter:
            alaz Alexander Azarov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: