JsonWriter Closes Underlying TextWriter Upon Dispose

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      JsonWriter, unlike JsonReader, BsonWriter, and BsonReader, closes the underlying TextWriter when it is disposed:

      https://github.com/mongodb/mongo-csharp-driver/blob/05d5932ebff415684cc5bbb38b5b82da92a636c0/src/MongoDB.Bson/IO/JsonWriter.cs#L658

      This should not happen.

            Assignee:
            Robert Stam
            Reporter:
            Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: