<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:56:37 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-2215] Determine handling of null values when decoding back in to primitive types</title>
                <link>https://jira.mongodb.org/browse/JAVA-2215</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Rescoping to provide meaningful error messages when data is found for a field that does not match the expected type.&lt;/p&gt;

&lt;p&gt;Rather than throwing a generic error:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;org.bson.BsonInvalidOperationException: readBoolean can only be called when CurrentBSONType is BOOLEAN, not when CurrentBSONType is NULL.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Wrap the exception and also provide information on what the name of the field that failed.&lt;/p&gt;

&lt;p&gt;&lt;ins&gt;Was:&lt;/ins&gt;&lt;br/&gt;
&lt;b&gt;Determine handling of null values when decoding back in to primitive types&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;When decoding in to Java objects with primitives, we need to decide if we&apos;re going to actively set those primitives to their 0 values or not set the field at all let any initialization in the class take care of it.&lt;/p&gt;</description>
                <environment></environment>
        <key id="292811">JAVA-2215</key>
            <summary>Determine handling of null values when decoding back in to primitive types</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="9">Done</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="justin.lee">Justin Lee</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Jun 2016 19:11:43 +0000</created>
                <updated>Mon, 3 Apr 2017 15:09:50 +0000</updated>
                            <resolved>Mon, 3 Apr 2017 15:09:50 +0000</resolved>
                                                    <fixVersion>3.5.0</fixVersion>
                                    <component>Codecs</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1539317" author="ross@10gen.com" created="Mon, 3 Apr 2017 15:09:50 +0000"  >&lt;p&gt;See &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1812&quot; title=&quot;Codec support for POJOs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1812&quot;&gt;&lt;del&gt;JAVA-1812&lt;/del&gt;&lt;/a&gt; for the commit containing the commit covering this ticket.&lt;/p&gt;</comment>
                            <comment id="1491537" author="ross@10gen.com" created="Fri, 3 Feb 2017 09:41:19 +0000"  >&lt;p&gt;Will look at in the scope of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2219&quot; title=&quot;Determine handling of default values&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2219&quot;&gt;&lt;del&gt;JAVA-2219&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="293017">JAVA-2219</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>JAVA-1812</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsvmkn:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1564">JVM Sprint 38</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>