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

In BasicBSONCallback treat a Symbol as such

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Trivial - P5 Trivial - P5
    • None
    • 2.6.5
    • BSON
    • None
    • JVM languages
    • Major Change

    Description

      The Ruby driver can save and retrieve a BSON Symbol if the saved document is modified via JVM langauges that wrap the Java driver, the Symbol would be replaced with a String.

      To allow retrieving of Bson Symbols I would suggest this:

      _put( name , new Symbol(v) );

      I have patched and jar'ed my fork and my tests in JRuby do save and retrieve a Ruby Symbol.

      I am not in a position to check the other JVM languages though, sorry.

      Attachments

        Activity

          People

            Unassigned Unassigned
            guyboertje Guy Boertje
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: