--- old/test/sun/security/ssl/AppInputStream/ReadHandshake.java Fri May 29 00:49:38 2015 +++ new/test/sun/security/ssl/AppInputStream/ReadHandshake.java Fri May 29 00:49:38 2015 @@ -21,19 +21,22 @@ * questions. */ +// +// SunJSSE does not support dynamic system properties, no way to re-use +// system properties in samevm/agentvm mode. +// + /* * @test * @bug 4514971 * @summary Verify applications do not read handshake data after failure * @run main/othervm ReadHandshake - * - * SunJSSE does not support dynamic system properties, no way to re-use - * system properties in samevm/agentvm mode. */ import java.io.*; import java.net.*; import javax.net.ssl.*; +import java.security.Security; public class ReadHandshake { @@ -219,6 +222,10 @@ volatile Exception clientException = null; public static void main(String[] args) throws Exception { + // reset security properties to make sure that the algorithms + // and keys used in this test are not disabled. + Security.setProperty("jdk.tls.disabledAlgorithms", ""); + Security.setProperty("jdk.certpath.disabledAlgorithms", ""); if (debug) System.setProperty("javax.net.debug", "all");