提交 71b8c144 编写于 作者: A anazarov

8174692: New MultiReleaseJarTest.java tests fail in JDK 10

Reviewed-by: alanb
上级 356419e7
......@@ -264,9 +264,6 @@ tools/jimage/JImageExtractTest.java 8170120 generic-
tools/jimage/JImageListTest.java 8170120 generic-all
tools/jimage/JImageVerifyTest.java 8170120 generic-all
tools/schemagen/MultiReleaseJarTest.java 8174692 generic-all
tools/wsgen/MultiReleaseJarTest.java 8174692 generic-all
############################################################################
# jdk_jdi
......
......@@ -56,7 +56,7 @@ public class MultiReleaseJarTest {
@DataProvider(name = "jarFiles")
public Object[][] jarFiles() {
return new Object[][]{{"MV_BOTH.jar", 9},
return new Object[][]{{"MV_BOTH.jar", Math.min(10, Runtime.version().major())},
{"MV_ONLY_9.jar", 9},
{"NON_MV.jar", 8}};
}
......
......@@ -56,7 +56,7 @@ public class MultiReleaseJarTest {
@DataProvider(name = "jarFiles")
public Object[][] jarFiles() {
return new Object[][]{{"MV_BOTH.jar", 9},
return new Object[][]{{"MV_BOTH.jar", Math.min(10, Runtime.version().major())},
{"MV_ONLY_9.jar", 9},
{"NON_MV.jar", 8}};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册