<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:50 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>[JAVA-2689] Type check the values in USE_GETTER_AS_SETTER_CONVENTION</title>
                <link>https://jira.mongodb.org/browse/JAVA-2689</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;There is a possibility for collections / maps to contain invalid pojos if there has been a bad data migration.&lt;/p&gt;

&lt;p&gt;Test by decoding a collection / map that contains a pojo with a discriminator that does not match that of the expected pojo.&lt;/p&gt;</description>
                <environment></environment>
        <key id="468226">JAVA-2689</key>
            <summary>Type check the values in USE_GETTER_AS_SETTER_CONVENTION</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="ross@mongodb.com">Ross Lawley</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Dec 2017 15:29:17 +0000</created>
                <updated>Wed, 20 Dec 2017 12:32:47 +0000</updated>
                            <resolved>Wed, 20 Dec 2017 12:32:47 +0000</resolved>
                                                                    <component>POJO</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1756687" author="ross@10gen.com" created="Wed, 20 Dec 2017 12:32:47 +0000"  >&lt;p&gt;Marking as &quot;Won&apos;t Fix&quot;.&lt;/p&gt;

&lt;p&gt;There is a possiblility when decoding to encounter invalid data - however that data will be handled by the codec that is responsible for the type of the field.  So if there was invalid data in the collection, a PojoCodec would have handled that data, here two things can happen;&lt;/p&gt;

&lt;p&gt;A) If the POJO is immutable then potentially it can&apos;t be constructed.&lt;br/&gt;
B) A POJO of the expected type is created and any default extra fields in the bson are ignored.&lt;/p&gt;

&lt;p&gt;In terms of behaviour using the &lt;tt&gt;USE_GETTER_AS_SETTER_CONVENTION&lt;/tt&gt; does not differ from the default behaviour.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <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|htbw3b:</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>