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

In BasicBSONCallback treat a Symbol as such

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 2.6.5
    • Component/s: BSON
    • Labels:
      None
    • Environment:
      JVM languages
    • Major Change

      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.

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

              Created:
              Updated:
              Resolved: