test/jdk/sun/security/tools/jarsigner/JarSigningNonAscii.java
changeset 50064 e4a7bacf99b1
parent 47216 71c04702a3d5
child 50539 7bf4f1b5e438
equal deleted inserted replaced
50063:50c0d24d3971 50064:e4a7bacf99b1
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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 4924188
    26  * @bug 4924188 8202816
    27  * @summary sign a JAR file that has entry names with non-ASCII characters.
    27  * @summary sign a JAR file that has entry names with non-ASCII characters.
    28  * @modules jdk.jartool/sun.security.tools.jarsigner
    28  * @modules jdk.jartool/sun.security.tools.jarsigner
    29  * @run main/othervm JarSigningNonAscii
    29  * @run main/othervm JarSigningNonAscii
    30  */
    30  */
    31 
    31 
    40 
    40 
    41     private static String jarFile;
    41     private static String jarFile;
    42     private static String keystore;
    42     private static String keystore;
    43 
    43 
    44     public static void main(String[] args) throws Exception {
    44     public static void main(String[] args) throws Exception {
    45         Security.setProperty("jdk.jar.disabledAlgorithms", "");
       
    46 
    45 
    47         String srcDir = System.getProperty("test.src", ".");
    46         String srcDir = System.getProperty("test.src", ".");
    48         String destDir = System.getProperty("test.classes", ".");
    47         String destDir = System.getProperty("test.classes", ".");
    49         String unsignedJar = srcDir + "/JarSigning_RU.jar";
    48         String unsignedJar = srcDir + "/JarSigning_RU.jar";
    50         String signedJar = destDir + "/JarSigning_RU.signed.jar";
    49         String signedJar = destDir + "/JarSigning_RU.signed.jar";