提交 86ef1a22 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Disable testAnonymousTlsSession() for Java 11+

上级 7a0c2456
......@@ -15,6 +15,7 @@ import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLServerSocket;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocket;
import org.h2.build.BuildBase;
import org.h2.engine.SysProperties;
import org.h2.test.TestBase;
import org.h2.util.NetUtils;
......@@ -57,6 +58,10 @@ public class TestNetUtils extends TestBase {
* (no SSL certificate is needed).
*/
private void testAnonymousTlsSession() throws Exception {
if (BuildBase.getJavaVersion() >= 11) {
// Issue #1303
return;
}
assertTrue("Failed assumption: the default value of ENABLE_ANONYMOUS_TLS" +
" property should be true", SysProperties.ENABLE_ANONYMOUS_TLS);
boolean ssl = true;
......
......@@ -928,7 +928,7 @@ public class BuildBase {
*
* @return the Java version (7, 8, 9, 10, 11, etc)
*/
protected static int getJavaVersion() {
public static int getJavaVersion() {
int version = 7;
String v = getJavaSpecVersion();
if (v != null) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论