RFR: 8344011: Remove usage of security manager from Class and reflective APIs

Alan Bateman alanb at openjdk.org
Wed Nov 13 12:19:58 UTC 2024


Remove code required needed for the now defunct SecurityManager execution mode from java.lang.Class, friends, and reflection APIs. Careful review is required so I've set Reviewer to 2. I've tried to keep the changes as easy to review as possible and not go over board with cleanup.

sun.reflect.misc.ReflectUtil are been hollowed out. A future pass will be removed to remove empty methods and qualified exports once the changes in "far away" code and modules is done.

runtime/cds/appcds/StaticArchiveWithLambda.java is temporarily excluded as the loading of a dynamically generated class at archive time. I'm checking with Calvin and Ioi on whether this test should be updated or replaced.

Testing: tier1-5

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

Commit messages:
 - Initial commit

Changes: https://git.openjdk.org/jdk/pull/22063/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22063&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8344011
  Stats: 1254 lines in 26 files changed: 8 ins; 1094 del; 152 mod
  Patch: https://git.openjdk.org/jdk/pull/22063.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22063/head:pull/22063

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


More information about the core-libs-dev mailing list