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

Coleen Phillimore coleenp at openjdk.org
Wed Feb 5 17:57:29 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 incrementally with three additional commits since the last revision:

 - Update test/jdk/java/lang/reflect/AccessibleObject/TrySetAccessibleTest.java
   
   Co-authored-by: David Holmes <62092539+dholmes-ora at users.noreply.github.com>
 - Update test/jdk/java/lang/reflect/AccessibleObject/TrySetAccessibleTest.java
   
   Co-authored-by: David Holmes <62092539+dholmes-ora at users.noreply.github.com>
 - Remove @Stable annotation for final field.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23396/files
  - new: https://git.openjdk.org/jdk/pull/23396/files/d04b808f..6bb7fe6e

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

  Stats: 9 lines in 2 files changed: 1 ins; 5 del; 3 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