13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8168423
27 * @summary Different types of ClassLoader running with(out) SecurityManager and
28 * (in)valid security policy file.
29 * @enablePreview
30 * @modules java.base/jdk.internal.module
31 * @library /test/lib
32 * @build jdk.test.lib.util.JarUtils
33 * jdk.test.lib.util.ModuleInfoWriter
34 * @build TestClassLoader TestClient
35 * @run main ClassLoaderTest -noPolicy
36 * @run main ClassLoaderTest -validPolicy
37 * @run main ClassLoaderTest -invalidPolicy
38 * @run main ClassLoaderTest -noPolicy -customSCL
39 * @run main ClassLoaderTest -validPolicy -customSCL
40 * @run main ClassLoaderTest -invalidPolicy -customSCL
41 */
42 import java.io.File;
43 import java.io.OutputStream;
44 import java.nio.file.Files;
45 import java.nio.file.Path;
46 import java.nio.file.Paths;
47 import java.nio.file.StandardCopyOption;
48 import java.util.stream.Stream;
49 import java.lang.module.ModuleDescriptor;
50 import java.util.Collections;
51 import java.util.LinkedList;
52 import java.util.List;
53 import jdk.test.lib.process.ProcessTools;
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8168423
27 * @summary Different types of ClassLoader running with(out) SecurityManager and
28 * (in)valid security policy file.
29 * @enablePreview
30 * @modules java.base/jdk.internal.module
31 * @library /test/lib
32 * @build jdk.test.lib.util.JarUtils
33 * @build TestClassLoader TestClient
34 * @run main ClassLoaderTest -noPolicy
35 * @run main ClassLoaderTest -validPolicy
36 * @run main ClassLoaderTest -invalidPolicy
37 * @run main ClassLoaderTest -noPolicy -customSCL
38 * @run main ClassLoaderTest -validPolicy -customSCL
39 * @run main ClassLoaderTest -invalidPolicy -customSCL
40 */
41 import java.io.File;
42 import java.io.OutputStream;
43 import java.nio.file.Files;
44 import java.nio.file.Path;
45 import java.nio.file.Paths;
46 import java.nio.file.StandardCopyOption;
47 import java.util.stream.Stream;
48 import java.lang.module.ModuleDescriptor;
49 import java.util.Collections;
50 import java.util.LinkedList;
51 import java.util.List;
52 import jdk.test.lib.process.ProcessTools;
|