JDK-8341916 : Remove ProtectionDomain related hotspot code and tests
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P3
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2024-10-10
  • Updated: 2024-10-14
Related Reports
Blocks :  
Description
The following tests that depend on ProtectionDomain code in the native hotspot code will need to be removed from the ProblemList after JEP 486 is integrated. These tests depend on remaining hotspot Security Manager related code which will be removed after JEP 486 is integrated.

runtime/Dictionary/CleanProtectionDomain.java
runtime/Dictionary/ProtectionDomainCacheTest.java 0000000 generic-all
runtime/logging/ProtectionDomainVerificationTest.java 0000000 generic-all
Comments
Some Hotspot code that deals with ProtectionDomain should remain but there is a lot of code to cache the value of checkPackageAccess that can be removed when the security manager removal JEP is integrated. The java.lang.Class instance still has a reference to it but that's only used by the JDK code and hotspot doesn't care about it.
14-10-2024