<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:43:48 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-2889] BsonClassMap.LookupClassMap supports private constructors inconsistently</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2889</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;For a derived type with private parameterless constructor, BsonClassMap.LookupClassMap works fine if it introduces new properties, but throws an exception if it does not (example in the attachment). It seems to me the method should work fine in both cases.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1072002">CSHARP-2889</key>
            <summary>BsonClassMap.LookupClassMap supports private constructors inconsistently</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="dmitry.lukyanov@mongodb.com">Dmitry Lukyanov</assignee>
                                    <reporter username="andrgenn@gmail.com">Gennady Andreev</reporter>
                        <labels>
                    </labels>
                <created>Tue, 31 Dec 2019 09:54:26 +0000</created>
                <updated>Sat, 28 Oct 2023 11:48:28 +0000</updated>
                            <resolved>Fri, 17 Jan 2020 22:46:44 +0000</resolved>
                                    <version>2.10.0</version>
                                    <fixVersion>2.10.2</fixVersion>
                                    <component>Serialization</component>
                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="3212482" author="rstam" created="Wed, 17 Jun 2020 16:03:37 +0000"  >&lt;p&gt;As part of fixing this issue we now correctly identify some immutable classes that we didn&apos;t use to correctly identify as immutable.&lt;/p&gt;

&lt;p&gt;Because immutable classes are deserialized differently than mutable classes (specifically: immutable classes will only be instantiated by calling a constructor) the changes in this ticket can result in slightly different behavior from before when deserializing documents that are missing fields.&lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3108&quot; title=&quot;Deserialization throws No matching creator found exception&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-3108&quot;&gt;&lt;del&gt;CSHARP-3108&lt;/del&gt;&lt;/a&gt; for details.&lt;/p&gt;</comment>
                            <comment id="2740282" author="xgen-internal-githook" created="Fri, 17 Jan 2020 22:43:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;DmitryLukyanov&apos;, &apos;name&apos;: &apos;DmitryLukyanov&apos;, &apos;email&apos;: &apos;dmitry.lukyanov@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2889&quot; title=&quot;BsonClassMap.LookupClassMap supports private constructors inconsistently&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2889&quot;&gt;&lt;del&gt;CSHARP-2889&lt;/del&gt;&lt;/a&gt;: BsonClassMap.LookupClassMap supports private constructors inconsistently.&lt;br/&gt;
Branch: v2.10.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/f8d38a869e1ec36cf2cd1bdcf26c9d279b006553&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/f8d38a869e1ec36cf2cd1bdcf26c9d279b006553&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2740153" author="xgen-internal-githook" created="Fri, 17 Jan 2020 21:30:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;DmitryLukyanov&apos;, &apos;email&apos;: &apos;dmitry.lukyanov@mongodb.com&apos;, &apos;username&apos;: &apos;DmitryLukyanov&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2889&quot; title=&quot;BsonClassMap.LookupClassMap supports private constructors inconsistently&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2889&quot;&gt;&lt;del&gt;CSHARP-2889&lt;/del&gt;&lt;/a&gt;: BsonClassMap.LookupClassMap supports private constructors inconsistently.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/2a716e19b631592c31ab4d55e4d03366c65d6be0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/2a716e19b631592c31ab4d55e4d03366c65d6be0&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="264414">CSHARP-1559</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1357042">CSHARP-3108</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1429945">CSHARP-3175</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="241601" name="Program.cs" size="1688" author="andrgenn@gmail.com" created="Tue, 31 Dec 2019 09:51:37 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hw2b4n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>