We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f9c891 commit fc0e5c3Copy full SHA for fc0e5c3
src/java.base/share/classes/jdk/internal/misc/SharedSecrets.java
@@ -36,6 +36,7 @@
36
import java.io.ObjectInputStream;
37
import java.io.RandomAccessFile;
38
import java.security.ProtectionDomain;
39
+import java.security.Security;
40
import java.security.Signature;
41
42
/** A repository of "shared secrets", which are a mechanism for
@@ -368,6 +369,9 @@ public static void setJavaSecuritySystemConfiguratorAccess(JavaSecuritySystemCon
368
369
}
370
371
public static JavaSecuritySystemConfiguratorAccess getJavaSecuritySystemConfiguratorAccess() {
372
+ if (javaSecuritySystemConfiguratorAccess == null) {
373
+ unsafe.ensureClassInitialized(Security.class);
374
+ }
375
return javaSecuritySystemConfiguratorAccess;
376
377
0 commit comments