<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:54: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-1299] Support JSR-310 Dates</title>
                <link>https://jira.mongodb.org/browse/JAVA-1299</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The current version of the Java driver only accepts java.util.Date for reading and writing Dates.&lt;br/&gt;
Unfortunately the API of java.util.Date is broken, and so is the performance impact of creating Dates.&lt;br/&gt;
Most projects use for that reason joda time, or since recently JSR 310.&lt;/p&gt;

&lt;p&gt;While you could work with them already now, it would always require the creation of temporary java.util.Date objects, either bei the driver when reading, or by the developer when writing.&lt;/p&gt;

&lt;p&gt;The driver should be configurable that joda-time or JSR 310 is directly used. Or that as a Developer I can at least provide a converter to do so (and especially avoid java.util.Date inbetween)&lt;/p&gt;</description>
                <environment></environment>
        <key id="144781">JAVA-1299</key>
            <summary>Support JSR-310 Dates</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="CodingFabian">Fabian Lange [X]</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Jul 2014 07:02:08 +0000</created>
                <updated>Tue, 10 Jan 2023 12:02:36 +0000</updated>
                            <resolved>Thu, 8 Mar 2018 14:20:52 +0000</resolved>
                                                    <fixVersion>3.7.0</fixVersion>
                                    <component>Codecs</component>
                                        <votes>4</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="1931690" author="asafch-talenya" created="Tue, 26 Jun 2018 14:23:42 +0000"  >&lt;p&gt;I&apos;m experiencing weird behavior with driver v3.7.0: without any special configuration I&apos;m able to use &lt;tt&gt;java.time.Instant&lt;/tt&gt; when constructing search filters using &lt;tt&gt;org.bson.Document&lt;/tt&gt;, however when I try to generate a JSON string from the search filter via &lt;tt&gt;Document::toJson&lt;/tt&gt;, a &lt;tt&gt;CodecConfigurationException&lt;/tt&gt; is thrown with the cause &quot;&lt;tt&gt;Can&apos;t find a codec for class java.time.Instant&lt;/tt&gt;&quot;.&lt;/p&gt;

&lt;p&gt;I could not find any supporting resource online that would explain this weird behavior, where in one place a usage of &lt;tt&gt;Instant&lt;/tt&gt; works and in another place it crashes.&lt;/p&gt;</comment>
                            <comment id="1827199" author="ross@10gen.com" created="Thu, 8 Mar 2018 14:24:04 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=cbartosiak&quot; class=&quot;user-hover&quot; rel=&quot;cbartosiak&quot;&gt;cbartosiak&lt;/a&gt;, many thanks for your help and contributions to the driver.  &lt;/p&gt;

&lt;p&gt;Users wanting alternative data structures and / or more flexibility regarding JSR-310 dates should check out the alternative JSR-310 codecs provider by &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=cbartosiak&quot; class=&quot;user-hover&quot; rel=&quot;cbartosiak&quot;&gt;cbartosiak&lt;/a&gt;:  &lt;a href=&quot;https://github.com/cbartosiak/bson-codecs-jsr310&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;bson-codecs-jsr310&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1827180" author="xgen-internal-githook" created="Thu, 8 Mar 2018 14:06:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;ross.lawley@gmail.com&apos;, &apos;name&apos;: &apos;Ross Lawley&apos;, &apos;username&apos;: &apos;rozza&apos;}
&lt;p&gt;Message: JSR-310 Instant &amp;amp; LocalDate/Time support&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1299&quot; title=&quot;Support JSR-310 Dates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1299&quot;&gt;&lt;del&gt;JAVA-1299&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/fb345bac3653bf409580caa8c0fb68c258858a09&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/fb345bac3653bf409580caa8c0fb68c258858a09&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1805506" author="ross@10gen.com" created="Wed, 14 Feb 2018 14:46:39 +0000"  >&lt;p&gt;PR: &lt;a href=&quot;https://github.com/rozza/mongo-java-driver/pull/253&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/rozza/mongo-java-driver/pull/253&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1803941" author="ross@10gen.com" created="Tue, 13 Feb 2018 09:11:47 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=cbartosiak&quot; class=&quot;user-hover&quot; rel=&quot;cbartosiak&quot;&gt;cbartosiak&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the offer, I&apos;ll send you an email directly.&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="1803232" author="cbartosiak" created="Mon, 12 Feb 2018 19:12:10 +0000"  >&lt;p&gt;Hi again,&lt;/p&gt;

&lt;p&gt;I would like to contribute with the codecs I&apos;ve written, but I&apos;ve stumbled on a question how to integrate JDK 8 API based code with the current codebase which should support a minimum version of Java 6. Hence these codecs cannot be a part of the default codec registry and should be injected conditionally. Do you have a best practice for this kind of problem?&lt;/p&gt;</comment>
                            <comment id="1761123" author="cbartosiak" created="Thu, 28 Dec 2017 22:29:10 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Is there any code ready for this feature?&lt;/p&gt;

&lt;p&gt;If not I&apos;m eager to contribute with the &lt;a href=&quot;https://github.com/cbartosiak/bson-codecs-jsr310&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;library&lt;/a&gt; I&apos;ve written.&lt;/p&gt;</comment>
                            <comment id="1746611" author="aharris" created="Fri, 8 Dec 2017 10:09:31 +0000"  >&lt;p&gt;Awesome&lt;/p&gt;</comment>
                            <comment id="639735" author="ross@10gen.com" created="Tue, 1 Jul 2014 08:07:30 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=CodingFabian&quot; class=&quot;user-hover&quot; rel=&quot;CodingFabian&quot;&gt;CodingFabian&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;This is on the roadmap and something that will be easy to do with the new codecs implementation on the 3.0.x branch.  The  final implementation is still being hammered out but there will be no need for an intermediate &lt;tt&gt;java.util.Date&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;I&apos;ll keep this ticket open and once the api is finalised I&apos;ll post a code example here.&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="403929">JAVA-2553</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2225716">JAVA-4835</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hr94br:</customfieldvalue>

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