On Mon, 14 Jul 2025 19:19:47 GMT, Sean Mullan <mul...@openjdk.org> wrote:

> `SocketPermission` should be deprecated for removal as has already been done 
> for many other `Permission` subclasses. However, `CodeSource.implies()` has 
> specification dependencies on `SocketPermission` which requires additional 
> changes to decouple those dependencies. 
> 
> This change deprecates `SocketPermission`for removal and removes the 
> dependency on `SocketPermission` from `CodeSource.implies` by copying the 
> relevant conditions from `SocketPermission.implies`. Additional test cases 
> for `CodeSource.implies` were also added to check that the behavior is 
> consistent.
> 
> Note that we may also eventually deprecate `CodeSource.implies` for removal 
> but that requires more investigation.

This pull request has now been integrated.

Changeset: d714b5d3
Author:    Sean Mullan <mul...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/d714b5d3dad58f7f6550d7a95fdc2b3f964a4129
Stats:     60 lines in 3 files changed: 52 ins; 1 del; 7 mod

8356557: Update CodeSource::implies API documentation and deprecate 
java.net.SocketPermission class for removal

Reviewed-by: jpai

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

PR: https://git.openjdk.org/jdk/pull/26300

Reply via email to