RFR: 8345153: Clean up SecurityManager references from jdk.compiler module [v2]

Jaikiran Pai jpai at openjdk.org
Mon Dec 2 07:13:21 UTC 2024


> 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

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22431/files
  - new: https://git.openjdk.org/jdk/pull/22431/files/495c94f0..66074dfd

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22431&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22431&range=00-01

  Stats: 32599 lines in 390 files changed: 26039 ins; 4332 del; 2228 mod
  Patch: https://git.openjdk.org/jdk/pull/22431.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22431/head:pull/22431

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


More information about the compiler-dev mailing list