<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:44 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-633] DBCollection.isCapped() method throws ClassCastException with mongodb-2.2.0</title>
                <link>https://jira.mongodb.org/browse/JAVA-633</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Apparently mongodb 2.2.0 changed the type of &quot;capped&quot; property returned by getStats() method for collections from integer to boolean.&lt;br/&gt;
As a result an attempt to invoke DBCollection.isCapped() on capped collection when working with mongodb version 2.2.0 leads to ClassCastException.&lt;/p&gt;

&lt;p&gt;I have attached the test that demonstrates the problem. The test will happily run with mongodb versions 2.0.x and below but fail with 2.2.0.&lt;br/&gt;
The source also provides an alternative implementation of isCapped() that fixes the problem.&lt;/p&gt;</description>
                <environment>Any.&lt;br/&gt;
(tested with 3.5.2-3.fc17.x86_64/jdk1.7.0_06(x64))</environment>
        <key id="48571">JAVA-633</key>
            <summary>DBCollection.isCapped() method throws ClassCastException with mongodb-2.2.0</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="9">Done</resolution>
                                        <assignee username="bryan.reinero">Bryan Reinero</assignee>
                                    <reporter username="akrainiouk">Alexei Krainiouk</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Aug 2012 19:59:58 +0000</created>
                <updated>Mon, 10 Sep 2012 01:51:50 +0000</updated>
                            <resolved>Fri, 7 Sep 2012 21:16:42 +0000</resolved>
                                    <version>2.7.3</version>
                    <version>2.9.0</version>
                                    <fixVersion>2.9.1</fixVersion>
                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="160792" author="bryan.reinero@10gen.com" created="Wed, 5 Sep 2012 19:51:45 +0000"  >&lt;p&gt;Commited to master &lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/79637285d1f063d0076c9cac5c1b556b3efe54b6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/79637285d1f063d0076c9cac5c1b556b3efe54b6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="158277" author="jeff.yemin" created="Wed, 29 Aug 2012 22:18:36 +0000"  >&lt;p&gt;Thanks for the report.  We&apos;ll get this incorporated into the next release of the driver. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="19161" name="IsCappedTest.java" size="1203" author="akrainiouk" created="Wed, 29 Aug 2012 19:59:58 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10012"><![CDATA[Major 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|hrggcf:</customfieldvalue>

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