--- old/test/jdk/sun/security/ssl/ProtocolVersion/HttpsProtocols.java 2019-12-04 13:00:27.000000000 -0800 +++ new/test/jdk/sun/security/ssl/ProtocolVersion/HttpsProtocols.java 2019-12-04 13:00:26.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -23,7 +23,7 @@ /* * @test - * @bug 4671289 + * @bug 4671289 8190492 * @summary passing https.protocols from command line doesn't work. * @run main/othervm -Dhttps.protocols=SSLv3 HttpsProtocols * @author Brad Wetmore @@ -88,6 +88,9 @@ SSLServerSocket sslServerSocket = (SSLServerSocket) sslssf.createServerSocket(serverPort); + // Enable all supported protocols on server side to test SSLv3 + sslServerSocket.setEnabledProtocols(sslServerSocket.getSupportedProtocols()); + serverPort = sslServerSocket.getLocalPort(); /*