RFR: 8345153: Clean up SecurityManager references from jdk.compiler module [v2]
Joe Darcy
darcy at openjdk.org
Wed Dec 4 22:35:40 UTC 2024
On Mon, 2 Dec 2024 07:13:21 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>> Can I please get a review of this change which removes references to SecurityManager related APIs from the `jdk.compiler` module?
>>
>> With the removal of SecurityManager implementation, various parts of the JDK, including classloader construction or `ServiceLoader` usage will no longer do the `SecurityManager` backed security checks. Failure of such security checks would previously raise a `SecurityException`. With these checks now no longer applicable, the `SecurityException` is treated as any other regular `RuntimeException`. The commit in this PR removes the special treatment of `SecurityException` and other usages of SecurityManager implementation.
>>
>> No new tests have been added and existing tests in tier1, tier2 and tier3 continue to pass with this change.
>
> Jaikiran Pai has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
>
> - clean up ServiceLoader usage code
> - merge latest from master branch
> - 8345153: Clean up SecurityManager references from jdk.compiler module
Looks fine; thanks for the cleanup.
-------------
Marked as reviewed by darcy (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/22431#pullrequestreview-2480052193
More information about the compiler-dev
mailing list