changeset 12249:93ced310c728

8069253: javax/net/ssl/TLS/TestJSSE.java failed on Mac Reviewed-by: xuelei
author weijun
date Mon, 29 Jun 2015 15:04:43 +0800
parents e47d3bfbc61a
children 68ce12551103
files test/javax/net/ssl/TLS/CipherTestUtils.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/javax/net/ssl/TLS/CipherTestUtils.java	Sun Jun 28 16:38:22 2015 -0700
+++ b/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"