-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8344233: Remove calls to SecurityManager and doPrivileged in java.net.ProxySelector and sun.net.spi.DefaultProxySelector after JEP 486 integration #22145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
….ProxySelector and sun.net.spi.DefaultProxySelector after JEP 486 integration
👋 Welcome back jpai! A progress list of the required criteria for merging this PR into |
@jaikiran This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No CSR needed for removing those permissions. There's no visible change to the public APIs, and no behavior change that was not already covered by JEP 486 CSR, since permissions checks have now become deadcode. Or am I missing something?
I believe you are right. The |
Those permission target names have already been removed from |
Thank you Sean, I had missed that part from the JEP 486 CSR. |
There were merge conflicts in this PR in the |
LGTM |
Thank you Daniel for the review. |
/integrate |
Going to push as commit a91d4c0. |
Can I please get a review of this change which removes calls to
SecurityManager
andAccessController.doPrivileged()
from theProxySelector
andDefaultProxySelector
classes?Apart from the trivial removing of those calls, the commit in this PR also removes the
getProxySelector
andsetProxySelector
namedNetPermission
s. These 2 named permissions, were previously only documented on theProxySelector.getDefault()
andProxySelector.setDefault()
methods. With the removal of SecurityManager, the specification of these named properties ceases to exist. Having said that, would removal of these named NetPermission(s) require a CSR linked to this current issue?The other major chunk of this change is moving the proxy determination logic in
DefaultProxySelector
into a private method from the previousdoPriveleged()
call block.No new tests have been introduced. Existing tests in tier1 and tier2 continue to pass with this change.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22145/head:pull/22145
$ git checkout pull/22145
Update a local copy of the PR:
$ git checkout pull/22145
$ git pull https://git.openjdk.org/jdk.git pull/22145/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22145
View PR using the GUI difftool:
$ git pr show -t 22145
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22145.diff
Using Webrev
Link to Webrev Comment