<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:03:49 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-5126] Replace use of Subject#doAs with Subject#callAs when available</title>
                <link>https://jira.mongodb.org/browse/JAVA-5126</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The driver uses &lt;tt&gt;Subject#doAs&lt;/tt&gt; in &lt;tt&gt;SaslAuthenticator&lt;/tt&gt;.  &lt;/p&gt;

&lt;p&gt;However, &lt;tt&gt;Subject#doAs&lt;/tt&gt; was deprecated for removal in Java 18, and &lt;tt&gt;Subject#callAs&lt;/tt&gt; was added in the same release.  This is related to the deprecation of the Security Manager.&lt;/p&gt;

&lt;p&gt;To protect against the driver breaking when used against a future version of Java where &lt;tt&gt;Subject#doAs&lt;/tt&gt;  has actually been removed, we should replace the usage with &lt;tt&gt;Subject#callAs&lt;/tt&gt;.  However, we can&apos;t do that simply given that we have to run against Java release prior to Java 18. To work around this, we need to detect dynamically whether &lt;tt&gt;Subject#callAs&lt;/tt&gt; is available, and then call it reflectively if it is.  We should probably call &lt;tt&gt;Subject#doAs&lt;/tt&gt; reflectively as well to avoid a compile- or link-time dependency on it.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2430685">JAVA-5126</key>
            <summary>Replace use of Subject#doAs with Subject#callAs when available</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                            <label>tech-debt</label>
                    </labels>
                <created>Wed, 30 Aug 2023 20:23:34 +0000</created>
                <updated>Wed, 27 Sep 2023 20:47:31 +0000</updated>
                                                                            <component>Deprecations</component>
                    <component>JDK</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <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_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1.  What would you like to communicate to the user about this feature?&lt;br/&gt;
2.  Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3.  Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY24Q4</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr1d6w:rxw</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>