On Fri, 15 Nov 2024 10:31:11 GMT, Jaikiran Pai <j...@openjdk.org> wrote:

> Can I please get a review of this change which removes calls to 
> `SecurityManager` and `AccessController.doPrivileged()` from the 
> `ProxySelector` and `DefaultProxySelector` classes?
> 
> Apart from the trivial removing of those calls, the commit in this PR also 
> removes the `getProxySelector` and `setProxySelector` named `NetPermission`s. 
> These 2 named permissions, were previously only documented on the 
> `ProxySelector.getDefault()` and `ProxySelector.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 previous 
> `doPriveleged()` call block.
> 
> No new tests have been introduced. Existing tests in tier1 and tier2 continue 
> to pass with this change.

There were merge conflicts in this PR in the `SecurityConstants.java` file due 
to a recent integration in mainline. I've now resolved them and updated this PR.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/22145#issuecomment-2480306703

Reply via email to