8069253: javax/net/ssl/TLS/TestJSSE.java failed on Mac
authorweijun
Mon, 29 Jun 2015 15:04:43 +0800
changeset 31419 da88ed1523b8
parent 31302 f66c18528472
child 31420 7ee930c87f08
8069253: javax/net/ssl/TLS/TestJSSE.java failed on Mac Reviewed-by: xuelei
jdk/test/javax/net/ssl/TLS/CipherTestUtils.java
--- a/jdk/test/javax/net/ssl/TLS/CipherTestUtils.java	Wed Jul 05 20:39:43 2017 +0200
+++ b/jdk/test/javax/net/ssl/TLS/CipherTestUtils.java	Mon Jun 29 15:04:43 2015 +0800
@@ -47,6 +47,7 @@
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Base64;
+import java.util.Collections;
 import java.util.List;
 import javax.net.ssl.KeyManagerFactory;
 import javax.net.ssl.SSLEngine;
@@ -70,7 +71,8 @@
     public static final SecureRandom secureRandom = new SecureRandom();
     public static char[] PASSWORD = "passphrase".toCharArray();
     private static final List<TestParameters> TESTS = new ArrayList<>(3);
-    private static final List<Exception> EXCEPTIONS = new ArrayList<>(1);
+    private static final List<Exception> EXCEPTIONS
+            = Collections.synchronizedList(new ArrayList<>(1));
     private static final String CLIENT_PUBLIC_KEY
         = "-----BEGIN CERTIFICATE-----\n"
         + "MIICtTCCAh4CCQDkYJ46DMcGRjANBgkqhkiG9w0BAQUFADCBnDELMAkGA1UEBhMC\n"