1 /* |
1 /* |
2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8132734 8144062 |
26 * @bug 8132734 8144062 8194070 |
27 * @summary Test the System properties for JarFile that support multi-release jar files |
27 * @summary Test the System properties for JarFile that support multi-release jar files |
28 * @library /lib/testlibrary/java/util/jar |
28 * @library /lib/testlibrary/java/util/jar |
29 * @build Compiler JarBuilder CreateMultiReleaseTestJars |
29 * @build Compiler JarBuilder CreateMultiReleaseTestJars |
30 * @run testng MultiReleaseJarProperties |
30 * @run testng MultiReleaseJarProperties |
31 * @run testng/othervm -Djdk.util.jar.version=0 MultiReleaseJarProperties |
31 * @run testng/othervm -Djdk.util.jar.version=0 MultiReleaseJarProperties |
32 * @run testng/othervm -Djdk.util.jar.version=8 MultiReleaseJarProperties |
32 * @run testng/othervm -Djdk.util.jar.version=8 MultiReleaseJarProperties |
33 * @run testng/othervm -Djdk.util.jar.version=9 MultiReleaseJarProperties |
33 * @run testng/othervm -Djdk.util.jar.version=9 MultiReleaseJarProperties |
34 * @run testng/othervm -Djdk.util.jar.version=10 MultiReleaseJarProperties |
|
35 * @run testng/othervm -Djdk.util.jar.version=100 MultiReleaseJarProperties |
34 * @run testng/othervm -Djdk.util.jar.version=100 MultiReleaseJarProperties |
36 * @run testng/othervm -Djdk.util.jar.version=8 -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarProperties |
35 * @run testng/othervm -Djdk.util.jar.version=8 -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarProperties |
37 * @run testng/othervm -Djdk.util.jar.version=9 -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarProperties |
36 * @run testng/othervm -Djdk.util.jar.version=9 -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarProperties |
38 * @run testng/othervm -Djdk.util.jar.version=10 -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarProperties |
37 * @run testng/othervm -Djdk.util.jar.version=8 -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarProperties |
39 * @run testng/othervm -Djdk.util.jar.version=8 -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarProperties |
38 * @run testng/othervm -Djdk.util.jar.version=9 -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarProperties |
40 * @run testng/othervm -Djdk.util.jar.version=9 -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarProperties |
|
41 * @run testng/othervm -Djdk.util.jar.version=10 -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarProperties |
|
42 * @run testng/othervm -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarProperties |
39 * @run testng/othervm -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarProperties |
43 * @run testng/othervm -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarProperties |
40 * @run testng/othervm -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarProperties |
44 */ |
41 */ |
45 |
42 |
46 import java.io.File; |
43 import java.io.File; |