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

Aleksey Shipilev shade at openjdk.org
Fri Jan 31 17:08:49 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.

One thing to think about: does this mean `protectionDomain` is now discoverable by reflection? Should it be? Should it be filtered?

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

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


More information about the core-libs-dev mailing list