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

Coleen Phillimore coleenp at openjdk.org
Fri Jan 31 17:19:49 UTC 2025


On Fri, 31 Jan 2025 16:51:07 GMT, Chen Liang <liach 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.
>
> 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.

Thanks for looking at this.  I didn't want to change this with this change.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23396#discussion_r1937633847


More information about the hotspot-dev mailing list