test/jdk/java/util/jar/JarFile/mrjar/MultiReleaseJarHttpProperties.java
changeset 48690 374c63fbe652
parent 47216 71c04702a3d5
child 54841 43439afaab4a
equal deleted inserted replaced
48689:e704f48d8277 48690:374c63fbe652
     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
    26  * @bug 8132734 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  * @modules jdk.jartool
    29  * @modules jdk.jartool
    30  *          jdk.compiler
    30  *          jdk.compiler
    31  *          jdk.httpserver
    31  *          jdk.httpserver
    32  * @build Compiler JarBuilder CreateMultiReleaseTestJars SimpleHttpServer
    32  * @build Compiler JarBuilder CreateMultiReleaseTestJars SimpleHttpServer
    33  * @run testng MultiReleaseJarHttpProperties
    33  * @run testng MultiReleaseJarHttpProperties
    34  * @run testng/othervm -Djdk.util.jar.version=0 MultiReleaseJarHttpProperties
    34  * @run testng/othervm -Djdk.util.jar.version=0   MultiReleaseJarHttpProperties
    35  * @run testng/othervm -Djdk.util.jar.version=8 MultiReleaseJarHttpProperties
    35  * @run testng/othervm -Djdk.util.jar.version=8   MultiReleaseJarHttpProperties
    36  * @run testng/othervm -Djdk.util.jar.version=9 MultiReleaseJarHttpProperties
    36  * @run testng/othervm -Djdk.util.jar.version=9   MultiReleaseJarHttpProperties
    37  * @run testng/othervm -Djdk.util.jar.version=10 MultiReleaseJarHttpProperties
       
    38  * @run testng/othervm -Djdk.util.jar.version=100 MultiReleaseJarHttpProperties
    37  * @run testng/othervm -Djdk.util.jar.version=100 MultiReleaseJarHttpProperties
    39  * @run testng/othervm -Djdk.util.jar.version=8 -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarHttpProperties
    38  * @run testng/othervm -Djdk.util.jar.version=8   -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarHttpProperties
    40  * @run testng/othervm -Djdk.util.jar.version=9 -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarHttpProperties
    39  * @run testng/othervm -Djdk.util.jar.version=9   -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarHttpProperties
    41  * @run testng/othervm -Djdk.util.jar.version=10 -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarHttpProperties
    40  * @run testng/othervm -Djdk.util.jar.version=8   -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarHttpProperties
    42  * @run testng/othervm -Djdk.util.jar.version=8 -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarHttpProperties
    41  * @run testng/othervm -Djdk.util.jar.version=9   -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarHttpProperties
    43  * @run testng/othervm -Djdk.util.jar.version=9 -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarHttpProperties
       
    44  * @run testng/othervm -Djdk.util.jar.version=10 -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarHttpProperties
       
    45  * @run testng/othervm -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarHttpProperties
    42  * @run testng/othervm -Djdk.util.jar.enableMultiRelease=false MultiReleaseJarHttpProperties
    46  * @run testng/othervm -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarHttpProperties
    43  * @run testng/othervm -Djdk.util.jar.enableMultiRelease=force MultiReleaseJarHttpProperties
    47  */
    44  */
    48 
    45 
    49 import java.io.IOException;
    46 import java.io.IOException;