[CSHARP-1287] DOCS- BsonValues no longer accept nulls in their ctors Created: 20/May/15  Updated: 13/Apr/16  Resolved: 19/Jun/15

Status: Closed
Project: C# Driver
Component/s: Documentation
Affects Version/s: 2.0
Fix Version/s: 2.0.2, 2.1

Type: Improvement Priority: Major - P3
Reporter: Bret Ferrier Assignee: Craig Wilson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

c#, windows


Issue Links:
Related
is related to CSHARP-509 Remove superfluous Create methods and... Closed
is related to CSHARP-555 BsonDocument object model methods sho... Closed

 Description   

We need to add this bit of information into the backwards breaking changes documentation.

Original

The following used to work

var bsonArray = new BsonArray(incorrectFields);

however it throws chunks when incorrectFields is null where as before it didn't, found this when upgrading from 1.10 -> 2.0



 Comments   
Comment by Githook User [ 13/Jun/15 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1287: documented that null was no longer allowed in BsonValue-derived constructors.
Branch: v2.0.x
https://github.com/mongodb/mongo-csharp-driver/commit/ce9dbcefcfa8b6a669097448e0ecd22332ae646d

Comment by Githook User [ 13/Jun/15 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1287: documented that null was no longer allowed in BsonValue-derived constructors.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/0cdfbb3965ef2d392a77b4bc72a6934094593004

Comment by Craig Wilson [ 22/May/15 ]

Hi Bret,

I'm sorry we didn't document this in the backwards breaking changes section. This change was intentional and I've linked both the tickets that are related to it.

We'll get the documentation corrected.

Thanks,
Craig

Generated at Wed Feb 07 21:39:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.