提交 8bf32048 编写于 作者: X xuelei

7043514: NPE in sun.security.ssl.JsseJce.isEcAvailable

Reviewed-by: weijun, vinnie, wetmore
上级 88886989
......@@ -62,7 +62,7 @@ final class JsseJce {
// Flag indicating whether EC crypto is available.
// If null, then we have not checked yet.
// If yes, then all the EC based crypto we need is available.
private static volatile Boolean ecAvailable;
private static Boolean ecAvailable;
// Flag indicating whether Kerberos crypto is available.
// If true, then all the Kerberos-based crypto we need is available.
......@@ -190,7 +190,7 @@ final class JsseJce {
// no instantiation of this class
}
static boolean isEcAvailable() {
synchronized static boolean isEcAvailable() {
if (ecAvailable == null) {
try {
JsseJce.getSignature(SIGNATURE_ECDSA);
......@@ -206,7 +206,7 @@ final class JsseJce {
return ecAvailable;
}
static void clearEcAvailable() {
synchronized static void clearEcAvailable() {
ecAvailable = null;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册