< prev index next >

test/jdk/sun/security/tools/jarsigner/multiRelease/MVJarSigningTest.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 21,31 **** * questions. */ /* * @test ! * @bug 8047305 8075618 * @summary Tests jarsigner tool and JarSigner API work with multi-release JAR files. * @library /test/lib * @build jdk.test.lib.compiler.CompilerUtils * jdk.test.lib.Utils * jdk.test.lib.Asserts --- 21,31 ---- * questions. */ /* * @test ! * @bug 8047305 8075618 8194070 * @summary Tests jarsigner tool and JarSigner API work with multi-release JAR files. * @library /test/lib * @build jdk.test.lib.compiler.CompilerUtils * jdk.test.lib.Utils * jdk.test.lib.Asserts
*** 79,89 **** private static final String ALIAS = "JavaTest"; private static final String STOREPASS = "changeit"; private static final String KEYPASS = "changeit"; private static final String SIGNED_JAR = "Signed.jar"; private static final String POLICY_FILE = "SignedJar.policy"; ! private static final String VERSION = "" + Runtime.version().major(); private static final String VERSION_MESSAGE = "I am running on version " + VERSION; public static void main(String[] args) throws Throwable { // compile java files in jarContent directory compile("jarContent"); --- 79,89 ---- private static final String ALIAS = "JavaTest"; private static final String STOREPASS = "changeit"; private static final String KEYPASS = "changeit"; private static final String SIGNED_JAR = "Signed.jar"; private static final String POLICY_FILE = "SignedJar.policy"; ! private static final String VERSION = "" + Math.min(Runtime.version().major(), 10); private static final String VERSION_MESSAGE = "I am running on version " + VERSION; public static void main(String[] args) throws Throwable { // compile java files in jarContent directory compile("jarContent");
< prev index next >