Skip to content

Commit

Permalink
8344924: Default CA certificates loaded despite request to use custom…
Browse files Browse the repository at this point in the history
… keystore

Reviewed-by: mullan
Backport-of: 4c39e9faa0cb8e4fd00d8b9dc0ac5ad64d6b287d
  • Loading branch information
driverkt committed Dec 10, 2024
1 parent ba02e0b commit 4ecb28c
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

package sun.security.ssl;

import java.lang.invoke.MethodHandles;
import java.net.Socket;
import java.security.*;
import java.security.cert.*;
Expand All @@ -52,15 +51,6 @@
final class X509TrustManagerImpl extends X509ExtendedTrustManager
implements X509TrustManager {

static {
// eagerly initialize to avoid pinning virtual thread during TLS handshake
try {
MethodHandles.lookup().ensureInitialized(AnchorCertificates.class);
} catch (IllegalAccessException e) {
throw new ExceptionInInitializerError(e);
}
}

private final String validatorType;

/**
Expand Down

0 comments on commit 4ecb28c

Please sign in to comment.