Skip to content

Commit 4ecb28c

Browse files
committed
8344924: Default CA certificates loaded despite request to use custom keystore
Reviewed-by: mullan Backport-of: 4c39e9f
1 parent ba02e0b commit 4ecb28c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/java.base/share/classes/sun/security/ssl/X509TrustManagerImpl.java

-10
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
package sun.security.ssl;
2727

28-
import java.lang.invoke.MethodHandles;
2928
import java.net.Socket;
3029
import java.security.*;
3130
import java.security.cert.*;
@@ -52,15 +51,6 @@
5251
final class X509TrustManagerImpl extends X509ExtendedTrustManager
5352
implements X509TrustManager {
5453

55-
static {
56-
// eagerly initialize to avoid pinning virtual thread during TLS handshake
57-
try {
58-
MethodHandles.lookup().ensureInitialized(AnchorCertificates.class);
59-
} catch (IllegalAccessException e) {
60-
throw new ExceptionInInitializerError(e);
61-
}
62-
}
63-
6454
private final String validatorType;
6555

6656
/**

0 commit comments

Comments
 (0)