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

Coleen Phillimore coleenp at openjdk.org
Fri Jan 31 17:33:45 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.

I was thinking of what happens if you use setAccessible(true) on this field.  At worst we could add it to the filter of fields that we don't allow setAccessible(true) on.

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

PR Comment: https://git.openjdk.org/jdk/pull/23396#issuecomment-2627869508


More information about the hotspot-dev mailing list