<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:38 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-2600] Pojo class can&apos;t implement Iterable</title>
                <link>https://jira.mongodb.org/browse/JAVA-2600</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I was experimenting a bit with the POJO support added in 3.5. Just using the automatic PojoCodecProvider. But I noticed a weird behavior. &lt;/p&gt;

&lt;p&gt;When your POJO class implements Iterable. The BSON conversion generates an array type instead document type. I think this is a bug,&lt;/p&gt;

&lt;p&gt;You can reproduce it by using the PojoQuickTour example, Just make the Person implements Iterable&amp;lt;Address&amp;gt;, and implement the iterator&amp;lt;Address&amp;gt; and suddenly the code start failing/&lt;/p&gt;</description>
                <environment>Debian Linux &amp;amp; Windows</environment>
        <key id="428115">JAVA-2600</key>
            <summary>Pojo class can&apos;t implement Iterable</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="dekker_p">Patrick Dekker</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Sep 2017 14:06:16 +0000</created>
                <updated>Fri, 27 Oct 2023 13:21:11 +0000</updated>
                            <resolved>Tue, 3 Oct 2017 13:13:54 +0000</resolved>
                                    <version>3.5.0</version>
                                                    <component>Codecs</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1674006" author="ross@10gen.com" created="Fri, 15 Sep 2017 15:37:06 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dekker_p&quot; class=&quot;user-hover&quot; rel=&quot;dekker_p&quot;&gt;dekker_p&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;This is expected behaviour an &lt;tt&gt;Iterable&lt;/tt&gt; maps to a &lt;tt&gt;Bson Array&lt;/tt&gt; and a &lt;tt&gt;Map&amp;lt;String, Object&amp;gt;&lt;/tt&gt; maps to a &lt;tt&gt;Bson Document&lt;/tt&gt;.  As such you cannot have a top level POJO that represents an iterable.&lt;/p&gt;

&lt;p&gt;I hope that helps,&lt;/p&gt;

&lt;p&gt;Ross&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|ht6rof:</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>