RFR: 8349145: Make Class.getProtectionDomain() non-native [v3]
Coleen Phillimore
coleenp at openjdk.org
Mon Feb 3 16:02:00 UTC 2025
On Mon, 3 Feb 2025 14:31:28 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.
>
> Coleen Phillimore has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
>
> - Hide Class.protectionDomain for reflection and add a test case.
> - Merge branch 'master' into protection-domain
> - Fix two tests.
> - Fix the test.
> - 8349145: Make Class.getProtectionDomain() non-native
[0.102s][info][class,init] 55 Initializing 'java/lang/System$1'(no method) (0x0000000042057eb8) by thread "main"
...
[0.125s][info][class,init] 174 Initializing 'jdk/internal/reflect/Reflection' (0x0000000042066f50) by thread "main"
I don't have System$2 just System$1.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23396#issuecomment-2631411677
More information about the core-libs-dev
mailing list