Other BSONOutputStream classes allow writes where the size parameter is zero and therefore do nothing, whereas BSONOutputStreamGZ does not, and so can break applications where such behaviour is expected.
BSONOutputStreamGZ should be updated to do nothing at all when size == 0.
Other
BSONOutputStream
classes allow writes where thesize
parameter is zero and therefore do nothing, whereasBSONOutputStreamGZ
does not, and so can break applications where such behaviour is expected.BSONOutputStreamGZ
should be updated to do nothing at all whensize == 0
.