<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53:11 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-839] Fix up ObjectId API</title>
                <link>https://jira.mongodb.org/browse/JAVA-839</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Add methods:&lt;/p&gt;

&lt;p&gt;Deprecate:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;ObjectId(java.util.Date, int, int)&lt;/li&gt;
	&lt;li&gt;ObjectId(String,boolean)&lt;/li&gt;
	&lt;li&gt;ObjectId(int,int,int)&lt;/li&gt;
	&lt;li&gt;toStringMongod()&lt;/li&gt;
	&lt;li&gt;toStringBabble()&lt;/li&gt;
	&lt;li&gt;babbleToMongod()&lt;/li&gt;
	&lt;li&gt;getTimeSecond()&lt;/li&gt;
	&lt;li&gt;getMachine()&lt;/li&gt;
	&lt;li&gt;getInc()&lt;/li&gt;
	&lt;li&gt;getGenMachineId()&lt;/li&gt;
	&lt;li&gt;getCurrentInc()&lt;/li&gt;
	&lt;li&gt;getTime()&lt;/li&gt;
	&lt;li&gt;isNew()&lt;/li&gt;
	&lt;li&gt;notNew()&lt;/li&gt;
	&lt;li&gt;massageToObjectId(Object)&lt;/li&gt;
	&lt;li&gt;_flip(int)&lt;/li&gt;
	&lt;li&gt;_inc()&lt;/li&gt;
	&lt;li&gt;_machine()&lt;/li&gt;
	&lt;li&gt;_time()&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Add:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;toHexString()&lt;/li&gt;
	&lt;li&gt;getCurrentCounter()&lt;/li&gt;
	&lt;li&gt;getTimestamp()&lt;/li&gt;
	&lt;li&gt;getDate()&lt;/li&gt;
	&lt;li&gt;createFromLegacyFormat(int, int, int)&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="77591">JAVA-839</key>
            <summary>Fix up ObjectId API</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="9">Done</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                            <label>2to3</label>
                    </labels>
                <created>Sun, 2 Jun 2013 17:49:17 +0000</created>
                <updated>Tue, 13 May 2014 18:45:22 +0000</updated>
                            <resolved>Mon, 26 Aug 2013 19:35:45 +0000</resolved>
                                                    <fixVersion>2.12.0</fixVersion>
                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="414376" author="auto" created="Thu, 29 Aug 2013 21:28:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-839&quot; title=&quot;Fix up ObjectId API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-839&quot;&gt;&lt;del&gt;JAVA-839&lt;/del&gt;&lt;/a&gt;: Added createFromLegacyFormat static factory method.  Removed the corresponding 3-args constructor, and other dangerous deprecated methods.&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/9e454474616fdddc773ed25b23a983c6bdb3e1c7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/9e454474616fdddc773ed25b23a983c6bdb3e1c7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="411582" author="auto" created="Mon, 26 Aug 2013 17:12:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-839&quot; title=&quot;Fix up ObjectId API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-839&quot;&gt;&lt;del&gt;JAVA-839&lt;/del&gt;&lt;/a&gt;: Added createFromLegacyFormat static factory method.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/4ca169cd0e85b2c66945ed2bda63d9408c25de2c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/4ca169cd0e85b2c66945ed2bda63d9408c25de2c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="409203" author="auto" created="Thu, 22 Aug 2013 17:46:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;trnl&apos;, u&apos;name&apos;: u&apos;Uladzimir Mihura&apos;, u&apos;email&apos;: u&apos;trnl.me@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-839&quot; title=&quot;Fix up ObjectId API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-839&quot;&gt;&lt;del&gt;JAVA-839&lt;/del&gt;&lt;/a&gt;: deprecated methods should fallback to toByteArray()&lt;/p&gt;

&lt;p&gt;This is done because of differences in byte order with in ObjectId between 2.x and 3.x versions&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/ef4393649fcd70fa833c0092ffe669dc19341920&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/ef4393649fcd70fa833c0092ffe669dc19341920&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="403689" author="auto" created="Thu, 15 Aug 2013 11:29:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;trnl&apos;, u&apos;name&apos;: u&apos;Uladzimir Mihura&apos;, u&apos;email&apos;: u&apos;trnl.me@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-839&quot; title=&quot;Fix up ObjectId API&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-839&quot;&gt;&lt;del&gt;JAVA-839&lt;/del&gt;&lt;/a&gt;: update ObjectId api&lt;/p&gt;

&lt;p&gt;Deprecated:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;ObjectId(java.util.Date, int, int)&lt;/li&gt;
	&lt;li&gt;ObjectId(String,boolean)&lt;/li&gt;
	&lt;li&gt;ObjectId(int,int,int)&lt;/li&gt;
	&lt;li&gt;toStringMongod()&lt;/li&gt;
	&lt;li&gt;toStringBabble()&lt;/li&gt;
	&lt;li&gt;babbleToMongod()&lt;/li&gt;
	&lt;li&gt;getTimeSecond()&lt;/li&gt;
	&lt;li&gt;getMachine()&lt;/li&gt;
	&lt;li&gt;getInc()&lt;/li&gt;
	&lt;li&gt;getGenMachineId()&lt;/li&gt;
	&lt;li&gt;getCurrentInc()&lt;/li&gt;
	&lt;li&gt;getTime()&lt;/li&gt;
	&lt;li&gt;isNew()&lt;/li&gt;
	&lt;li&gt;notNew()&lt;/li&gt;
	&lt;li&gt;massageToObjectId(Object)&lt;/li&gt;
	&lt;li&gt;_flip(int)&lt;/li&gt;
	&lt;li&gt;_inc()&lt;/li&gt;
	&lt;li&gt;_machine()&lt;/li&gt;
	&lt;li&gt;_time()&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Added:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;toHexString()&lt;/li&gt;
	&lt;li&gt;getTimestamp()&lt;/li&gt;
	&lt;li&gt;getDate()&lt;/li&gt;
	&lt;li&gt;getCurrentCounter()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/ec4b06732be9534992b357eb058292eef9163b1c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/ec4b06732be9534992b357eb058292eef9163b1c&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="398576" author="uladzimir_mihura@epam.com" created="Thu, 8 Aug 2013 12:42:41 +0000"  >&lt;p&gt;In 3.x we have toHexString(), toStringMongod() and toString() which actually calls toHexString().&lt;br/&gt;
In 2.x toString() called toStringMongod(). &lt;/p&gt;

&lt;p&gt;I believe that in 3.x it&apos;s a right behaviour.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="136284">JAVA-1232</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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrqx9b:</customfieldvalue>

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