<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:04:16 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-5318] Java RecordCodec not supporting &quot;BsonDiscriminator&quot;</title>
                <link>https://jira.mongodb.org/browse/JAVA-5318</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Java Record supports for interface implementation.&lt;/p&gt;

&lt;p&gt;Let say i have interface A&lt;/p&gt;

&lt;p&gt;record B implements A&lt;/p&gt;

&lt;p&gt;record C implements A&lt;/p&gt;

&lt;p&gt;Let say i have some type of collection like this: List&amp;lt;A&amp;gt;&lt;/p&gt;

&lt;p&gt;This list permit me to add B and C types of objects.&lt;/p&gt;

&lt;p&gt;The problem is when you try to convert this list to BSON using RecordCodec&lt;/p&gt;

&lt;p&gt;It throws Not supporting exception for BsonDiscriminator.&lt;/p&gt;

&lt;p&gt;BsonDiscriminator supporting records is essential for this situation otherwise it is requiring to manually implement this solution...&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.mongodb.com/community/forums/t/data-format-for-multiple-java-records-implementing-same-interface/264807&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Full Explanation&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2566224">JAVA-5318</key>
            <summary>Java RecordCodec not supporting &quot;BsonDiscriminator&quot;</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="eliparchik@gmail.com">Eli Partsi</reporter>
                        <labels>
                    </labels>
                <created>Sun, 4 Feb 2024 00:20:15 +0000</created>
                <updated>Mon, 5 Feb 2024 16:45:11 +0000</updated>
                                                                            <component>BSON</component>
                    <component>Codecs</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="6065287" author="dbeng-pm-bot" created="Sun, 4 Feb 2024 00:20:17 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=eliparchik%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;eliparchik@gmail.com&quot;&gt;eliparchik@gmail.com&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26442"><![CDATA[Java Drivers]]></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|i2srqq:</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>