RFR: 8349145: Make Class.getProtectionDomain() non-native [v3]

Coleen Phillimore coleenp at openjdk.org
Mon Feb 3 14:31:28 UTC 2025


> This change removes the native call and injected field for ProtectionDomain in the java.lang.Class instance, and moves the field to be declared in Java.
> Tested with tier1-4.

Coleen Phillimore 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 five additional commits since the last revision:

 - Hide Class.protectionDomain for reflection and add a test case.
 - Merge branch 'master' into protection-domain
 - Fix two tests.
 - Fix the test.
 - 8349145: Make Class.getProtectionDomain() non-native

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23396/files
  - new: https://git.openjdk.org/jdk/pull/23396/files/d7aafbaf..954c9a76

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

  Stats: 3875 lines in 26 files changed: 176 ins; 3644 del; 55 mod
  Patch: https://git.openjdk.org/jdk/pull/23396.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23396/head:pull/23396

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


More information about the core-libs-dev mailing list