<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:02:58 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-4789] Make bson.record.codec module optional for OSGi</title>
                <link>https://jira.mongodb.org/browse/JAVA-4789</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Currently the Java Driver can&apos;t be used in OSGi containers using a Java version lower than 17, which according to the compatibility matrix should not happen, as it should be compatible from Java 8+.&lt;/p&gt;

&lt;p&gt;The problem is that there is a dependency of bson.codecs.record, which requires Java17+ according to its MANIFEST.MF:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Require-Capability: osgi.ee;filter:=&quot;(&amp;amp;(osgi.ee=JavaSE)(version=17))&quot;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;This change will make the Import-Package attribute for bson.codecs.record optional, meaning when trying to use it in a OSGi container it won&apos;t fail because the dependency can&apos;t be satisfied in lower versions than 17.&lt;/p&gt;

&lt;p&gt;After building with the proposed change applied, that line in the MANIFEST.MF file will look like this:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;org.bson.codecs.record;resolution:=optional;version=&quot;[4.7,5)&quot;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
</description>
                <environment></environment>
        <key id="2165151">JAVA-4789</key>
            <summary>Make bson.record.codec module optional for OSGi</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="13201">Fixed</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Oct 2022 13:32:02 +0000</created>
                <updated>Sat, 28 Oct 2023 11:20:33 +0000</updated>
                            <resolved>Thu, 27 Oct 2022 18:34:33 +0000</resolved>
                                                    <fixVersion>4.8.0</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4933285" author="jeff.yemin" created="Thu, 27 Oct 2022 18:34:33 +0000"  >&lt;p&gt;Document in the release notes that for OSGi:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;The bson.record.codec module is now optional&lt;/li&gt;
	&lt;li&gt;Any application that is relying on the driver to encode/decode Java records will need to add the dependency to bson.record.codec&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="4933274" author="xgen-internal-githook" created="Thu, 27 Oct 2022 18:32:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@mongodb.com&apos;, &apos;username&apos;: &apos;jyemin&apos;}
&lt;p&gt;Message: Revert &quot;Make bson.record.codec module optional for OSGi (#1024)&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 2f2e579e99a085d2e5a4f3812ab58fb303524406.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4789&quot; title=&quot;Make bson.record.codec module optional for OSGi&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4789&quot;&gt;&lt;del&gt;JAVA-4789&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 4.7.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/fd2f8cc988d4acdaaa1f65ae6def82ab9af2bfb0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/fd2f8cc988d4acdaaa1f65ae6def82ab9af2bfb0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4925175" author="xgen-internal-githook" created="Tue, 25 Oct 2022 13:14:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jos&#233; Andr&#233;s Cordero Ben&#237;tez&apos;, &apos;email&apos;: &apos;Joscorbe@users.noreply.github.com&apos;, &apos;username&apos;: &apos;Joscorbe&apos;}
&lt;p&gt;Message: Make bson.record.codec module optional for OSGi (#1024)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4789&quot; title=&quot;Make bson.record.codec module optional for OSGi&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4789&quot;&gt;&lt;del&gt;JAVA-4789&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 4.7.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/2f2e579e99a085d2e5a4f3812ab58fb303524406&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/2f2e579e99a085d2e5a4f3812ab58fb303524406&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4925167" author="xgen-internal-githook" created="Tue, 25 Oct 2022 13:10:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jos&#233; Andr&#233;s Cordero Ben&#237;tez&apos;, &apos;email&apos;: &apos;Joscorbe@users.noreply.github.com&apos;, &apos;username&apos;: &apos;Joscorbe&apos;}
&lt;p&gt;Message: Make bson.record.codec module optional for OSGi (#1024)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4789&quot; title=&quot;Make bson.record.codec module optional for OSGi&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4789&quot;&gt;&lt;del&gt;JAVA-4789&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/f5a84d3253f377e8e5fadaec01eee4c804c146e2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/f5a84d3253f377e8e5fadaec01eee4c804c146e2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4925166" author="mms-build@10gen.com" created="Tue, 25 Oct 2022 13:10:54 +0000"  >&lt;p&gt; &lt;a href=&quot;https://github.com/Joscorbe&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;jyemin&lt;/a&gt; merged a pull request (&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/1024&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;JAVA-4789  Make bson.record.codec module optional for OSGi&lt;/a&gt;) into the following branch:&lt;br/&gt;
                       master: &lt;a href=&quot;https://github.com/Joscorbe/mongo-java-driver/commit/f5a84d3253f377e8e5fadaec01eee4c804c146e2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;f5a84d3253f377e8e5fadaec01eee4c804c146e2&lt;/a&gt;&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor 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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10250"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr3mmh:0400000942rci</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>