RFR: 8349145: Make Class.getProtectionDomain() non-native
Chen Liang
liach at openjdk.org
Fri Jan 31 16:59:46 UTC 2025
On Fri, 31 Jan 2025 16:39:35 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> 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.
Marked as reviewed by liach (Reviewer).
src/java.base/share/classes/java/lang/System.java line 2150:
> 2148: }
> 2149:
> 2150: public ProtectionDomain protectionDomain(Class<?> c) {
This accessor has become pointless since the functinoal removal of SM, but it would be out of scope for this PR.
-------------
PR Review: https://git.openjdk.org/jdk/pull/23396#pullrequestreview-2587285757
PR Review Comment: https://git.openjdk.org/jdk/pull/23396#discussion_r1937604899
More information about the core-libs-dev
mailing list